Skip to content

Instantly share code, notes, and snippets.

@marceloxp marceloxp/switch-case.php
Last active Dec 18, 2015

Embed
What would you like to do?
switch case
switch ($i)
{
case 0:
echo "i equals 0";
break;
case 1:
echo "i equals 1";
break;
case 2:
echo "i equals 2";
break;
default:
echo "i is not equal to 0, 1 or 2";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.