PHP TutorialLesson 4Free preview
PHP Syntax
This lesson is part of PHP · All levels
Summary
This lesson sets the basic rules for writing PHP code, from block markers to semicolon marks as the end of commands. You also learn that PHP is case-sensitive for built-in function names, but ignores spaces and new lines. This syntax mastery becomes the basis before we enter the variables and conditions.
Key points
- All PHP code should be between <?php and ?>.
- Each statement ends with a semicolon;
- PHP function names and variables are case-sensitive
- Curly braces group commands into blocks
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.