Author: codertutor_3o6d0o
PHP Operators The Arithmatic Operators: Example Name Result $n + $z Addition Sum of $n and $z. $n – $z Subtraction Difference of $n and $z. $n * $z Multiplication Product of $n and $z. $n / $z Division Quotient of...
PHP Data Types PHP supports the following types: Scalar types: boolean integer float string Compound types: array object callable Other types: resource NULL...
PHP Variables Variables syntax <html> <body> <?php $var = "variable"; echo $var; ?> </body> </html> Variables example <html> <body> <?php $name1 = "PHP course"; $name2 = "MySQL course"; $a = 20; $b = 30; $c = $a + $b; echo "Select...
PHP Echo Echo syntax <html> <body> <?php echo "Echo syntax"; ?> </body> </html> Echo example <html> <body> <?php echo " <h4>PHP example</h4> "; echo " Beginner online course!<br /> PHP programming language. " ; ?> </body> </html> Result PHP example Beginner...
Start first PHP page PHP syntax <?php // input PHP code ?> Start PHP example <html> <body> <h1>Start PHP</h1> <?php echo "Hello PHP!"; ?> </body> </html>...