The syntax is like the following:
It should be embedded in an html file that will be processed server-side, so as part of the file it should look like this:
Code:
<html>
<body>
<?php
command;
command;
command;
?>
</body>
</html>
Operators, conditional statements, and loops can be written as they are in Java or C++.