Re: [PHP] Passing arguments to an internal function via array_map

2011-11-10 Thread Marc Guay
> You need to pass a second and third array to array_map() with the same number > of elements as the first array. The arguments to the callback function are > the elements from each array at the same offset. Wow, thanks for the clarification. I've decided to create my own function and use that

Re: [PHP] Passing arguments to an internal function via array_map

2011-11-10 Thread Simon J Welsh
On 11/11/2011, at 5:10 AM, Marc Guay wrote: > Hi folks, > > I'm trying to convert the contents of an array from utf8 to utf16 > (thanks for the headache MS Excel!). I originally created a "user > function" that just ran the text through > mb_convert_encoding($text,'utf-16','utf-8') but now I'm w

[PHP] Passing arguments to an internal function via array_map

2011-11-10 Thread Marc Guay
Hi folks, I'm trying to convert the contents of an array from utf8 to utf16 (thanks for the headache MS Excel!). I originally created a "user function" that just ran the text through mb_convert_encoding($text,'utf-16','utf-8') but now I'm wondering if I can't just use the internal function direct