php switch syntax

php
voted: 0
vote
php switch

Php switch syntax

switch ($number) {
    case 1:
        echo 1;
        break;
    case 2:
        echo 2;
        break;
    case 3:
        echo 3;
        break;
    default
        echo 0;
        break;
}
working url: not entered
version: any?
Leave a Comment:
Characters left:
No comments yet.