title: Adding a wildcard (*) to a PHP if statement
body: <p>I'm trying to update the <code>"$searchValue"</code> below to include a wildcard  before &amp; after so if the string in <code>"$searchValue"</code> is found anywhere in the <code>$label</code> it will work. Any ideas on how to do that?</p>
  
  <pre><code>        foreach($json as $key=&gt;$value){
  
              foreach($value as $item)
              {
                  if($item-&gt;$label == "$searchValue")
                  {
                      echo $item-&gt;title.'&lt;br&gt;';
                  }
              }    
          }
  </code></pre>
  
  <p>Thanks for your help!</p>