This is the first post on my PHP blog Phppot. I am starting this blog with a lot of enthusiasm, love, and confidence. Hope I will add some value to the PHP community.
Following the tradition, let me start with the Hello World program in PHP. Following script displays the sentence “Hello, World!” in the browser. It is a simple and straight forward code. There are two basic ways of doing this hello world print and they are using ‘echo’ or ‘print’.
The difference between using ‘echo’ and ‘print’ is,
<?php echo "Hello, World!"; ?>
<?php print "Hello, World!"; ?>
In this context of printing ‘Hello, World!’, both ‘echo’ and ‘print’ are same.
This PHP code tutorial was published on April 11, 2013.