源代码:
"red","b"=>"green","c"=>"blue"); array_walk($a,"myfunction","has the value"); ?>
运行结果:
a has the value red b has the value green c has the value blue