This document provides an overview of basic PHP syntax and concepts, including:
- PHP scripting blocks start with <?php and end with ?>. For compatibility, use this standard form rather than shorthand <? ?>
- PHP code is embedded within HTML tags. A file must have a .php extension to execute PHP code.
- Variables, data types, operators, and conditional statements are explained. Arrays allow storing multiple values in one variable.
- Different loops (while, for) are used to repeat blocks of code. Comments use // for single-line and /* */ for multi-line.