-
<body>
This HTML tag begins the part of this script that’s viewable in the browser.
-
<?php
Begins the viewable part of this PHP script.
-
$company = "Acme Auto";
The variable $company is assigned the text value "Acme Auto."
-
myFunction($company);
Executes the code written in the myFunction user function above. This is where the variable $company is passed into the user function.
-
?>
Ends the viewable part of the PHP script.
PHP pages
With PHP, you can create HTML pages with PHP scripts embedded in them.
To get them to work, you just give them the extension .php instead of .html.
Example: page.php.