title: How to filter the array in php based on elements
body: <p>Can any body please tell me how to filter this array. I want to show only those records in which <code>hide_chat_1</code> or <code>hide_chat_2</code> are 0.I does not want <code>hide_chat_1</code> or <code>hide_chat_2</code> of value 1</p>
  
  <pre><code>Array(
      [0] =&gt; Array(
          [unread_msg] =&gt; 0[user_id] =&gt; 524[c_id] =&gt; 152[first_name] =&gt; Sanjay . palial@gmail . com[last_name] =&gt; Palial[user_name] =&gt; sanjay . palial@gmail . com[loginstatus] =&gt; 1[user_one] =&gt; 524[user_two] =&gt; 19[user_img] =&gt; [property_id] =&gt; 1571[locality] =&gt; Sector125[city] =&gt; Mohali[online_status] =&gt; 0[hide_chat_1] =&gt; 0[hide_chat_2] =&gt; 0
      ) [1] =&gt; Array(
          [unread_msg] =&gt; 0[user_id] =&gt; 465[c_id] =&gt; 151[first_name] =&gt; Alvinseo[last_name] =&gt; Verma[user_name] =&gt; alvinseo[loginstatus] =&gt; 1[user_one] =&gt; 465[user_two] =&gt; 19[user_img] =&gt; 296_IMG20150607083310 . jpg[property_id] =&gt; 1571[locality] =&gt; Sector125[city] =&gt; Mohali[online_status] =&gt; 0[hide_chat_1] =&gt; 0[hide_chat_2] =&gt; 1
      ) [2] =&gt; Array(
          [unread_msg] =&gt; 0[user_id] =&gt; 519[c_id] =&gt; 138[first_name] =&gt; ATSGolf[last_name] =&gt; Meadows[user_name] =&gt; atsgolfmeadows[loginstatus] =&gt; 1[user_one] =&gt; 19[user_two] =&gt; 519[user_img] =&gt; 705_2F79BB9221B2F96F7305AA96D01DD9EBD96BE4B0D7506F9954pimgpshfullsizedistr . png[property_id] =&gt; 1526[locality] =&gt; BarwalaRoad,
          Derabassi[city] =&gt; Derabassi[online_status] =&gt; 0[hide_chat_1] =&gt; 0[hide_chat_2] =&gt; 0
      ) [3] =&gt; Array(
          [unread_msg] =&gt; 0[user_id] =&gt; 504[c_id] =&gt; 134[first_name] =&gt; Mandeep[last_name] =&gt; Talwar[user_name] =&gt; mandy[loginstatus] =&gt; 0[user_one] =&gt; 19[user_two] =&gt; 504[user_img] =&gt; [property_id] =&gt; 1485[locality] =&gt; Sector114[city] =&gt; Mohali[online_status] =&gt; 0[hide_chat_1] =&gt; 1[hide_chat_2] =&gt; 0
      )
  )
  </code></pre>
  
  <p>It may be looks silly or easy questions for some of you. But any help is appreciable.</p>