PHP anonymous function before 5.3 - array_walk

dorasherbert

New Member
Is it possible to use PHP array_walk with an anonymous function (before PHP 5.3)? or some workaround..I'm using array_walk inside a public class method and I don't want to define a PHP function.. I want to do something like:\[code\]array_walk($array, function($value) {...});\[/code\]If that's not possible is it possible to use a class method instead of a function?
 
Back
Top