Variables are “containers” for storing information: Example <?php $x=5; $y=6; $z=$x+$y; echo $z; ?> Much Like Algebra x=5 y=6 z=x+y In algebra we use letters (like x) to hold values (like 5). From the expression z=x+y above, we can calculate the value of z to be 11. In PHP these …
Read More »PHP 5 Basic PHP Syntax
The PHP script is executed on the server, and the plain HTML result is sent back to the browser. Basic PHP Syntax A PHP script can be placed anywhere in the document. A PHP script starts with <?php and ends with ?>: <?php // PHP code goes here ?> The …
Read More »