title: Do you need break in switch when return is used?
body: <p>I was wondering if I need to use <code>break</code> in a <code>switch</code> function when <code>return</code> is used.</p>
  <pre><code>function test($string)
  {
    switch($string)
    {
      case 'test1':
        return 'Test 1: ' . $string;
      case 'test2':
        return 'Test 2: ' . $string;
    }
  }
  </code></pre>
  <p>I've tried it, and it works just fine without <code>break</code>. But is this safe?</p>