title: Why is all case statements execute in a switch case after a matching condition ,when not using break; in PHP
body: <p>Hi i can understand what is going on here , but want to know the purpose ,</p>
  
  <p>in this switch case statement </p>
  
  <pre><code>&lt;?php
  switch(1) {
  case 1: print("Book Details&lt;br /&gt;");
  case 2: print("Book Author&lt;br /&gt;");
  default: print("Missing Book&lt;br /&gt;");
  }
  ?&gt; 
  </code></pre>
  
  <p>the result is </p>
  
  <pre><code>Book Details
  Book Author
  Missing Book
  </code></pre>
  
  <p>my expected result was </p>
  
  <pre><code>Book Details
  Missing Book
  </code></pre>
  
  <p>My question is that </p>
  
  <p>*in switch statement we are checking <code>switch(1)</code> , so how is it possible to execute <code>case 2:</code>
   default should print and i can understand that .
  is there any particular reason to this ?</p>
  
  <p>please explain , thanks in advance . </p>