foreach($yeni as $alt) { if(in_array("il_id", array_keys($alt))) { echo "<pre>".print_r($alt,true)."</pre>"; } }