Canadian Open
Posted: Mon Sep 09, 2002 10:54 am
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
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");
?>