[ create a new paste ] login | about

Link: http://codepad.org/iPbDeLLA    [ raw code | output | fork ]

PHP, pasted on May 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$fruit = "Maçã";
    
switch($fruit){
case 'Apple':
echo "Yummy.";
break;
case 'Maçã':
echo "Achou a Maçã";
break;
case 'Tomate':
echo "Achou o Tomate";
break;
default:
echo "Não tem Maçã";
}   
?>


Output:
1
Achou a Maçã


Create a new paste based on this one


Comments: