2:38 AM

Basic PHP Tutorial.

posted under by FR3@K | Edit This
here i explain how to set out a PHP script and display text.


Here is a basic echo which displays the string Hello World.

CODE :-



<?php

echo ("Hello World");

?>



Notice the :

<?php




and :

?>





tags at the start and end of the script? These signal to the server when to start executing PHP code and when to stop executing it.

The echo "function" displays whatever is in the area between (" and ") .

At the end of everysingle line of PHP you write, you must put the semi colon; It tells the server to stop reading from this line and go down to the next. Alot of errors in PHP are from people forgetting to put them in.

0 comments

Make A Comment
top