Start and end tags
<?php
?>
<script language= "PHP" >
</script>
Note Three ways to note: Multiple lines of comments cannot be nested within a multiline comment, but you can nest single-line comments or embed multiline comments in a single-line comment.
/* Multiline Comment */
Single-line Comment
# single Comment
Blank Handling
Variable
Variable declaration
1 <?PHP2 $a = 100; Assign $ A to an integer value of3 $b = "string"; Assignment $b to a string value of "string"4 $c = true; Assign a value of $c to a Boolean value of True5 $d = 99.99; The assignment $d is a floating-point decimal number 99.996 7 $key 1 = $a; Declares a variable $key1 assigns $a variable to it8 $key 2 = $b; Declares a variable $key2 assigns $b variable to it9 $a = $b = $c = $d = $e = $f = "value"; Declare multiple variables at the same time and assign the same valuesTen One ?>
assigning values to variables
PHP Basic Syntax