array(3) {
["a"]=>
string(8) "wuyanzhu"
["b"]=>
string(13) "huangxiaoming"
["c"]=>
string(8) "ninzetao"
}
a ---WUYANZHU
b ---HUANGXIAOMING
c ---NINZETAO
用自訂函數test_print執行後的效果:array(3) {
["a"]=>
string(8) "wuyanzhu"
["b"]=>
string(13) "huangxiaoming"
["c"]=>
string(8) "ninzetao"
}
看一下手冊,手冊寫的很好理解,但你得先回呼函數
http://php.net/manual/zh/function.array-walk.php