<?php function get_value($i) { switch ($i) { case 1; return 1; default; return 2; break; } } var_dump(get_value(1)); var_dump(get_value(2));
You have javascript disabled. You will not be able to edit any code.