Canadian Open

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Canadian Open

Post by m3mn0n »

:lol:

Code: Select all

<?php

echo "Hello, World!";

?>
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Code: Select all

<?php
  class print_hello {
    function print_msg($type) {
      switch($type) {
        case "bold":
          echo "<b>Hello, World!</b>";
        break;
        case "italic":
          echo "<i>Hello, World!</i>";
        break;
        case "all":
          echo "<i><b>Hello, World!</b></i>";
        break;
        case "big":
          echo "<h1><i><b>Hello, World!</b></i></h1>";
        break;
     } 
  }


  $hello = new print_hello();

  $hello->print_msg("big");
?>
:lol:
Post Reply