Re: [PHP] static functions and array_map - why not allowed?

2007-02-13 Thread Jochem Maas
Marc Weber wrote: > > Why can't I use static functions in array_map? > > Example: > > class Dummy > { > static public function T($a) > { > echo "T called with $a\n"; > return $a+2; > } > } > > function t($a) > { > echo "t called with $a\n"; > return $a*2; > } > > echo 'invok

[PHP] static functions and array_map - why not allowed?

2007-02-13 Thread Marc Weber
Why can't I use static functions in array_map? Example: Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php