Let's Get Started with a PHP Arrays Page!
- Open Notepad++
- Choose:
File -> New
- Copy the PHP Arrays Template (PHP) code (below)
- Paste that code into your new file
- Change the put-title-of-this-page-here,
put-welcome-heading-here, and put-welcome-paragraph here
strings.
- Put some items in the five (5) array elements here:
- Click: File -> Save As
- Name your file: /public_html/arrays.php
- Change the
Save as type:
to: PHP Hypertext Preprocessor (*.php)
- Click: Save
- Visit your page (http://bscacad3.buffalostate.edu/arrays.php) in your favorite web browser
- Make any changes
- Save your changes
- Change the array items to something else (fruits, hobbies, songs, etc)
- Save your changes
- Reload your web page
PHP Arrays Template (PHP)
Output