title: How to check the array key matches specific string in php
body: <pre><code> $array = array(
                  "[ci_id]" =&gt; '144309',
                  "[NEW flag]" =&gt; 'No', 
                  "[[*PRODUCT_IMAGE_ANCHOR1*]]" =&gt; ,
                  "[[*PRODUCT_IMAGE2*]]" =&gt; '154154154' 
            );
  </code></pre>
  
  <p>I need to get the elements which have pattern like <code>'[['</code>.
  I have tried by using <code>array_key_exists()</code>:-</p>
  
  <p><code>if (array_key_exists('[*PRODUCT_IMAGE2*]', $array))</code> </p>
  
  <p>But i want to match only with <code>'['</code></p>
  
  <p>Can any one help me on this</p>