PHP cheatsheet - Control Structures: Switch

Control Structures: Switch
switch($variable){
    case 0:
        echo "variable equals 0";
        break;
    case 1:
        echo "variable equals 1";
        break;
    default:
        echo "default";
        break;
}
Date: From:www.lautturi.com, cheatsheet