Reading · 9 min

How PHP serves pages

You are previewing a free lesson. Enrol to save progress and take quizzes.

A browser requests a .php page, the server runs the PHP code, and only the resulting HTML is sent back. Variables start with $, arrays can be indexed or associative, and functions work much like in other languages.