Well, if you had been also pasted here the code, or the code describing the variable you use in lines 100 - 109 we could help you However, you are not passing an actuall array for the 2nd argument in the array_map() function. Further reading: http://www.php.net/function.array-map