title: PHP Search systems - how to use LIKE
body: <p>The following code fetches the TITLE attribute for each post. I want to compare it to a search phrase $f using something similar to the way LIKE works with SQL.</p>
  
  <pre><code>&lt;?php 
  
  $terms = $_GET['f'];
  
  $searchs = get_posts($args);
  
  foreach($searchs as $search){
  
      $title = get_the_title($search);
  </code></pre>
  
  <p>Then we would need something like:</p>
  
  <pre><code>if($title is LIKE $f) {   }
  </code></pre>
  
  <p>How would it work?</p>