PHP Anonymous function with array_walk-Collection of common programming errors
Yes, true anonymous functions (closures) are only available from PHP 5.3, however you can still create an anonymous function in earlier versions of PHP using the create_function() call, which can be used with array_walk(). Something like:
array_walk($myArray, create_function('&$value,$key', '$value = \'"\'.$value.\'"\';'));