Learn PHP Syntax

The PHP syntax and semantics are the format and the related meanings of the text and symbols in the PHP programming language.

They form a set of rules that define how a PHP program can be written and interpreted A PHP script can be placed anywhere in the HTML document. A PHP script starts with <?php and ends with ?> . Also you can use short tag <? echo "Good morning" ?>

The default file extension for PHP files is ".php". PHP code can be embedded in HTML code PHP statements end with a semicolon (;) keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined functions are not case-sensitive in php. All variable names are case-sensitive

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

64757