1. Home
  2. Computing & Technology
  3. PHP / MySQL

Merry Christmas
Hello World with Holiday Flare

By Angela Bradley, About.com

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

<?php
Print "Merry Christmas, World!";
?>

Using Echo

<?php
Echo "Merry Christmas, World!";
?>
More PHP / MySQL Quick Tips
Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. Step By Steps
  5. Holiday Hello World - Print and Echo Holiday Version - Hello World Merry Christmas

©2009 About.com, a part of The New York Times Company.

All rights reserved.