title: PHP if not in string
body: <p>I'am looking for a syntax that will do the following:</p>
  
  <pre><code>if('String' not in $string){
  
  //do this
  
  }
  </code></pre>
  
  <p>I am also looking for away to say</p>
  
  <pre><code>if('String' in $string){
  
  //do this
  
  }
  </code></pre>
  
  <p>Can anyone help, I have googled for solutions and they seem very confusing.</p>
  
  <p>Thanks,
  J</p>