| Posted by Shelly on 01/24/08 22:07 
I found that in PHP5 the following does not work:
 $a = "Foo";
 $b = $a::getStaticMethod();
 
 I've tried  {$a}::getStaticMethod();  and a few other things.  Looking
 in the manual, Example 2 is just this.  However, a user posted on Jan,
 4 that this doesn't work (just as I found out today).  Is this a bug?
 
 Does anyone have a work-around?  (I am not looking forward to doing an
 eval instead).
 
 Shelly
  Navigation: [Reply to this message] |