Skip to content

Instantly share code, notes, and snippets.

@cythrawll
Created July 22, 2014 17:55
Show Gist options
  • Save cythrawll/cd5e9d38c2cdcfca651a to your computer and use it in GitHub Desktop.
Save cythrawll/cd5e9d38c2cdcfca651a to your computer and use it in GitHub Desktop.
<?php
switch($foo) {
case 1:
echo $this->foo['bar'];
break;
case 2:
echo $this->foo['baz'];
doSomething();
break;
}
switch($foo) {
case 1: echo $this->foo['bar']; break;
case 2: echo $this->foo['baz']; doSomething(); break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment