What is php:Php(“
Php:hypertext Preprocessor", the acronym for Hypertext Preprocessor) is a widely used, open-source, multipurpose scripting language that can be embedded in HTML, especially for Web development.PHP basic Syntax:PHP scripts can be placed anywhere in the document, starting with <?php. > End; PHP Syntax Environment1, the standard form <php? Here is the PHP code?> 2, the standard form <script language= "PHP" > here is the PHP code </script> 3, short label form (not recommended) < Here is the PHP code?>PHP variables (variables are containers for storing information):
naming rules:1. Variables must start with the $ sign 2. Variable names must begin with a letter or a falling line3. Variable names cannot begin with a number4. Variable names can only contain numeric characters and glide lines5. Variable names are case sensitive basic use of variables1, the definition of variables: directly to the variable assignment, is the definition; JS does not support the definition but not the value of the syntax2. Value: The value of the variable is obtained in all statements that require a variable value
PHP 5.2 Knowledge Explained