Reply to Re: Singleton

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация