title: How to use a PHP switch statement to check if a string contains a word (but can also contain others)?
body: <p>I'm using a PHP switch to include certain files based on the incoming keywords passed in a parameter of the page's URL.</p>
  
  <p>The URL, for example, could be: <code>...page.php?kw=citroen%20berlingo%20keywords</code></p>
  
  <p>Inside the page, I'd like to use something like this:</p>
  
  <pre><code>&lt;?
      switch($_GET['kw']){
  
          case "berlingo":     
              include 'berlingo.php'
              break;
          case "c4":
              include 'c4.php';
              break;
  
      } 
  ?&gt;
  </code></pre>
  
  <p>What I want to do in the first case is include the <code>berlingo.php</code> file if the keyword parameter <em>contains</em> <code>berlingo</code>, but it doesn't have to be <em>exactly</em> that keyword alone.</p>
  
  <p>For example, I want to include the <code>berlingo.php</code> file if the keyword is <code>berlingo</code>, but <em>also</em> if it's <code>citroen berlingo</code>.</p>
  
  <p>How can I evaluate if a given string contains a value using a PHP case select (switch statement)?</p>
  
  <p>Thanks.</p>