Posted by Shelly on 01/24/08 22:44
On Jan 24, 5:07 pm, Shelly <sheldo...@thevillages.net> wrote:
> 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
An eval worked.
[Back to original message]
|