title: PHP- Switch case statement with conditional switch
body: <p>Can i put conditional statement within switch statement. ex - switch ($totaltime&lt;=13) Other than php how about other languages compatibility with it?</p>
  
  <pre><code>$totaltime=15;
  
  switch ($totaltime&lt;=13) {
  
  case ($totaltime &lt;= 1):
  echo "That was fast!";
  break;
  
  case ($totaltime &lt;= 5):
  echo "Not fast!";
  break;
  
  case ($totaltime &gt;= 10 &amp;&amp; $totaltime&lt;=15):
  echo "That's slooooow";
  break;
  }
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <pre><code>$totaltime=12; 
  switch (false) { 
  case ($totaltime &lt;= 1): 
  echo "That was fast!"; 
  break; 
  case ($totaltime &lt;= 5): 
  echo "Not fast!";
  break;
  case ($totaltime &gt;= 10 &amp;&amp; $totaltime&lt;=13): 
  echo "That's slooooow"; 
  break; 
  default: // do nothing break; 
  } 
  </code></pre>
  
  <p>Gentleman in this case why alwyas show output as "That was fast!"?</p>