title: using variables for the cases and a function for a switch?
body: <p>In PHP I'd like to do this:  </p>
  
  <pre><code>switch (function_foo($bar,$bar2)) {
  case $fu:
      *Do Stuff*
      break;
  case $fubar:
      *Do Other Stuff*
      break;
  }
  </code></pre>
  
  <p>Is this a terrible idea? Will it work?</p>