<?php $arr = ["1" => "a", "2" => "b", "3" => [10 => "apple",11 => "cat", 12 => ["key" => "image" ]]]; if ( array_walk_recursive($arr, function($item,$key) { if ($key == "key") { echo "\nKey is $key and item is $item"; } })) { echo "\narray_walk_recursive rocks :)"; }
You have javascript disabled. You will not be able to edit any code.