11-28-2010, 04:59 AM
|
#7 (permalink)
|
|
The Addict
Join Date: Jun 2008
Posts: 335
Thanks: 2
|
The first argument, the callback, doesn't work that way.
For functions, we can provide a string argument
For static methods we provide an array of the Class and the Static Method
for methods within objects, we provide the object and the method name, so...
array_map(array($obj, 'clean'), $arr);
|
|
|
|