<?php
function println($s) {
echo $s."\n";
}
function try_switch($a) {
switch ($a)
{
case 'Case 1':
println('In 1');
break;
case 0:
println('In 0');
break;
default:
println('In default');
break;
}
}
try_switch(true); // Will go into the case 'Case 1', because 'Case 1' == true
try_switch(0); // Will go into the case 'Case 1', because 'Case 1' == 0
try_switch(false); // Will go into case 0, because 0 == false