title: Using strstr inside a switch php
body: <p>I just cannot think of the code. I have waay too many if statments which I want to change to be a switch statement, but I cannot find of the logic.</p>
  
  <p>At the moment I have:</p>
  
  <pre><code>if(strstr($var,'texttosearch'))
     echo 'string contains texttosearch';
  
  if(strstr($var,'texttosearch1'))
     echo 'string contains texttosearch1';
  
  if(strstr($var,'texttosearch2'))
     echo 'string contains texttosearc2h';
  
  //etc etc...
  </code></pre>
  
  <p>But how can I achieve the same within a switch?</p>