php array_walk_recursive函数的使用

<?php
function myfunction($value,$key)
{
echo "The key $key has the value $value<br />";
}
$a1=array("a"=>"Cat","b"=>"Dog");
$a2=array($a1,"1"=>"Bird","2"=>"Horse");
array_walk_recursive($a2,"myfunction");
?>

原文地址:https://www.cnblogs.com/flintlovesam/p/4600301.html