Here's PHP Switch example
<?
// switch example using integers
$option=4;
switch ($option) {
case 1:
echo "a good monkey sees no evil";
break;
case 2:
echo "a good monkey speaks no evil";
break;
case 3:
echo "a good monkey hears no evil";
break;
case 4:
echo "a good monkey does no evil";
break;
}
?>
// switch example using integers
$option=4;
switch ($option) {
case 1:
echo "a good monkey sees no evil";
break;
case 2:
echo "a good monkey speaks no evil";
break;
case 3:
echo "a good monkey hears no evil";
break;
case 4:
echo "a good monkey does no evil";
break;
}
?>
Another posts included in "PHP"
| Can PHP switch in strings ? (0) | 2007/10/16 |
| foreach loop (0) | 2007/10/16 |
| Posting to a Wordpress Blog Via XMLRPC Using Blogger API (1) | 2007/12/15 |
| How to send email in PHP ? (0) | 2007/10/16 |
| How to pass variables via url (0) | 2007/10/16 |
| How to declare array in PHP like C/C++ (0) | 2007/10/16 |
| PHP date and time formatting (0) | 2007/10/16 |
| How to redirect browser in PHP ? (0) | 2007/10/16 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/29 04:50
moneyideas
-
Subject different money making ideas
2010/01/29 13:31
moneyideas
-
Subject different money making ideas
2010/01/31 16:42
moneyideas

Prev

Rss Feed