PHP - Lesson 1
PHP - Lesson 1
INTRODUCTION TO PHP
<?php
//PHP codes goes here
?>
EXAMPLE
PHP CASE SENSITIVITY
• In PHP, keywords (e.g. if, else, while, echo, etc.), classes,
functions, and user-defined functions are not case-sensitive.
PHP COMMENTS
• Let others understand your code.
• Remind yourself of what you did - most programmers have
experienced coming back to their own work a year or two
later and having to re-figure out what they did. Comments
can remind you of what you were thinking when you wrote
the code.
PHP COMMENTS TYPES
Syntax for single-line comments Syntax for multiple-line comments