Source Code:
(back to article)
<?php function myFunction($value, $key) { echo "$key: $value\n"; } $array = array("a", "b", array("c", "d", "e"), "f"); array_walk_recursive($array, "myFunction"); ?>
Result:
Report an issue