Since the dawn of time (okey, since the 70s) the traditional first program you write in any language is a "Hello World" program. This is a program that simply outputs the words Hello, World to the screen. Nothing else, nothing fancy, just saying hello.
It is a holiday tradition here at About.com to modify our Hello Worlds a little bit this time of year, to give them some holiday flare. So without further ado, here is the "Merry Christmas World" PHP script.
Using Print
Using Echo
It is a holiday tradition here at About.com to modify our Hello Worlds a little bit this time of year, to give them some holiday flare. So without further ado, here is the "Merry Christmas World" PHP script.
Using Print
<?phpPrint "Merry Christmas, World!"; ?>
Using Echo
<?phpEcho "Merry Christmas, World!"; ?>
SHARE