Array_map versus array walk because of warning issues
Hi i have a simple question I am using array_walk to encode an array to
utf8 like this :
array_walk($row, 'utf8_encode');
but i keep on getting a php warning this one
(PHP Warning: Wrong parameter count for utf8_encode() ).
So i was wondering does using array_map instead to encode to utf8
(array_walk('utf8_encode',$row);) have the same effect, because with array
map i don't have the warning issue.
Thanks.
No comments:
Post a Comment