源代码:
"red","b"=>"green"); $a2=array($a1,"1"=>"blue","2"=>"yellow"); array_walk_recursive($a2,"myfunction"); ?>
运行结果:
The key a has the value red The key b has the value green The key 1 has the value blue The key 2 has the value yellow