0
What is php syntax
I want learn
2 ответов
+ 14
awful, is what php syntax is.
+ 6
One of PHP’s advantages is that it can be embed PHP code directly alongside HTML. For the code to do anything, the page must be passed to the PHP engine for interpretation. For PHP to work you will need PHP interpreter.
1. PHP block
<?php
//statement goes here
?>
2. Variable declaration
<?php
$var=2;
?>
3. Printing results
<?php
echo "Hello World";
echo (4+4);
echo $var;
?>
4. if, switch, loops are same as in C/C++