[ create a new paste ] login | about

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

PHP, pasted on Jun 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
    $name = 'Joe';

    switch($name){
        case 'Joe':
            echo 'He\'s cool.';
            break;
        case 'Tom':
            echo 'He\'s ok.';
            break;
        default:
            echo 'Who\'s that?';
    }
?>


Output:
1
He's cool.


Create a new paste based on this one


Comments: