PHP Tags and Statements
PHP code lives between <?php and ?>. Each statement ends with a semicolon. In pure PHP files the closing tag is left out.
Example
$a = 5;
$b = 6;
echo $a + $b, "\n";Result
11
Exercise
Print a value.
"hi";Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.