Location: PHPKode > projects > phc > test/subjects/codegen/switch_int_vs_string.php
<?php

	$x = 2;
	switch ($x)
	{
		case "0":
			echo "0\n";
			break;
		case "1":
			echo "1\n";
			break;
		default:
			echo "default\n";
			break;
		case "2":
			echo "2\n";
			break;
		case "3":
			echo "3\n";
			break;
	}
?>
Return current item: phc