This free program allows you to view and edit numerous different file types, PHP included. To install it, do the following:  Go to https://www.barebones.com/products/bbedit/ in your Mac's web browser. Click Free Download in the upper-right side of the page. Double-click the downloaded DMG file.  Verify the software if prompted. Drag the BBEdit icon onto the "Applications" folder. Follow any on-screen prompts. Click the magnifying glass-shaped icon in the top-right corner of the screen to do so. Type in bbedit, then double-click BBEdit in the resulting drop-down menu. If this is your first time opening BBEdit after installing, click Open when prompted, then click Continue to continue with the 30 day trial. It's in the top-left corner of the screen. A drop-down menu will appear. This is in the File drop-down menu. Doing so opens a Finder window. Go to the location in which your PHP file is stored, then click the PHP file to select it. It's in the bottom-right corner of the window. Doing so opens the PHP file in BBEdit; you should now be able to see the PHP file's text.  You may instead click Choose here. If you edit your PHP file, be sure to save it by pressing ⌘ Command+S.
BBEdit को डाउनलोड और इन्स्टाल करें: स्पॉटलाइट (Spotlight) खोलें: BBEdit खोलें: File क्लिक करें: Open… क्लिक करें: आपकी पीएचपी (PHP) फ़ाइल को चुनें: Open क्लिक करें: