title: How to search text using php if ($text contains "World")
body: <p>How to search text using php?</p>
  
  <p>Something like: </p>
  
  <pre><code>&lt;?php
  
  $text = "Hello World!";
  
  if ($text contains "World") {
      echo "True";
  }
  
  ?&gt;
  </code></pre>
  
  <p>Except replacing <code>if ($text contains "World") {</code> with a working condition.</p>