array_walk() can't understand
益伦
益伦 2017-10-17 16:41:38
0
2
1304

array(3) {
["a"]=>
string(8) "wuyanzhu"
["b"]=>
string(13) "huangxiaoming"
["c"]=>
string(8) "ninzetao"
}
a ---WUYANZHU
b ---HUANGXIAOMING
c ---NINZETAO
The effect after executing the custom function test_print: array(3) {
["a"]=>
string(8) "wuyanzhu"
["b"]=>
string(13) "huangxiaoming"
["c"]=>
string(8) "ninzetao"
}


strtoupper(); Convert string to uppercase; ——Why is the previous a not changed to uppercase?

array_walk(); I don’t understand this function. What do $item2 and $key mean and what do they do?


益伦
益伦

reply all(1)
寻觅 beyond

Read the manual. The manual is easy to understand, but you must first know the callback function

http://php.net/manual/zh/function.array-walk.php


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template