title: PHP: Check if multi dimensional array contains part of a value
body: <p>Consider an array like this:</p>
  <pre><code>$my_array = array(    
      0 =&gt;  array(  
          &quot;Date&quot;   =&gt; &quot;20220901&quot;,  
          &quot;Description&quot;   =&gt; &quot;My name is Jack&quot;  
          
      ),  
      1   =&gt;  array(  
          &quot;Date&quot;   =&gt; &quot;20220901&quot;,  
          &quot;Description&quot;   =&gt; &quot;I have a dog&quot;
      ), 
      2   =&gt;  array(  
          &quot;Date&quot; =&gt;  &quot;20220901&quot;,  
          &quot;Description&quot;   =&gt; &quot;I have a house&quot;
      )
  );
  </code></pre>
  <p>How do I return <code>true</code> or <code>false</code> if I search for the value 'Jack'. In other words, how do I search for the word <code>Jack</code> in the array and return <code>true</code> or <code>false</code> if it exists? Remember, 'Jack' is just a part of the value and not the full value i.e. 'My name is Jack'.</p>
  <p>This is what I tried but it's returning false because I didn't supply the full value:</p>
  <pre><code>if (array_search(&quot;Jack&quot;, array_column($my_array, 'Description')) !== false) {
    echo 'True';
  } else {
    echo 'False';
  }
  </code></pre>