Course details
PHP
Learn how PHP runs on the server and turns code into web pages. You will work with variables, types, arrays, decisions, functions and loops, then read URLs and forms safely — all while building a small online bookshop.
Course curriculum
Introduction to PHP4 lessons
See where PHP runs and where it came from, learn its basic writing rules, and understand how variables, scope, types and casting behave.
Output and Arrays4 lessons
Choose between echo, print, var_dump and print_r, then store data in indexed, associative and multi-dimensional arrays.
Conditionals4 lessons
Choose the right branch with if and elseif, compare one value against many with switch and match, and handle missing values with ?? and ?->.
Functions5 lessons
Define constants, write typed functions with parameters and return values, use defaults and named arguments, pass functions as callbacks, and write recursive and variadic functions.
Loops and Includes3 lessons
Repeat actions with while, do-while and for, walk arrays with foreach, and split a site into shared files with include and require.
HTTP Methods and Forms3 lessons
Read query strings with $_GET, handle forms with $_POST using a safe method-validate-act-redirect recipe, and understand $_REQUEST and $_SERVER.
