Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Calling a static function.
October 8, 2007, 10:09 pm
rate this thread
I have to call a bunch of static functions where class names are
stored in a array.
So I have: $my_array = array("class_1","class_2", ... and so on...)
So I tried this piece of code to call static functions attached to
each classes like that:
foreach($my_array as $classname)
..and I get this error: Parse error: syntax error, unexpected
T_PAAMAYIM_NEKUDOTAYIM (by the way, if someone could tell me what
language is T_PAAMAYIM_NEKUDOTAYIM..) PHP5 can't do it magically..
Any help would be greatly appreciated :)