PHP

PHP runs on a server and can generate HTML dynamically, process forms, and work with databases.

Recommended order

  1. What is PHP? (Japanese)
  2. Hello world (Japanese)
  3. Embed PHP in HTML (Japanese)
  4. Variables and operators (Japanese)
  5. Forms and databases (Japanese)

How PHP fits into a web page

The browser receives the HTML produced by PHP. PHP code runs on the server, so users normally do not see the PHP source code in the response.

<?php
echo '<p>Hello from PHP!</p>';
?>

Start with the Japanese reference pages above while the detailed English translations are added alongside future edits.