PHP is probably easier to learn than JavaScript because it runs on the server. That means it doesn't need to worry about different browser versions so the code should work for any page. The purpose for PHP is to allow pages to be customised by the server for different people, times or purposes.
For now you will not access databases which is a bit of a restriction because PHP and MySQL are a great partnership but that will come soon so be patient!
These pages assume you know the basics of HTML and CSS so if you do not you should go to those tutorials first. You need to be especially aware of HTML forms.
Hover over the links for a brief description.
- How PHP and HTML mix
- PHP and quotation marks
- PHP variables
- PHP arithmetic
- PHP if
- PHP if else
- PHP if elseif
- PHP arrays
- PHP for loops
- PHP foreach loops
- Splitting and joining PHP variables and strings
- PHP super globals
- Searching strings in PHP
- PHP forms
- PHP forms on a single page
- PHP and file handling
- PHP and file handling - file structure
- Uploading a file with PHP
- PHP while statements
- Using $_GET to pass data between PHP pages
- PHP and graphics
- PHP functions
- Some other thoughts on PHP
