PHP is a backend scripting language. When a PHP page is requested, the server processes the PHP code and typically generates dynamic HTML as a result, which is then sent to the client's browser.