1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Merry Christmas

Hello World with Holiday Flare


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

 Print "Merry Christmas, World!";

Using Echo

 Echo "Merry Christmas, World!";
  1. About.com
  2. Technology
  3. PHP / MySQL
  4. Step By Steps
  5. Holiday Hello World - Print and Echo Holiday Version - Hello World Merry Christmas

©2014 About.com. All rights reserved.