Reply to accessing static member if class name is a variable (crosspost php.general)

Your name:

Reply:


Posted by rain_c1 on 05/04/06 15:11

hi!

is there a way to access a static member of a class, if the classname
is a variable?

this does not work:
$classname::$member

for methods there is a solution:
call_user_func(array($classname, 'method'));

for constants, too:
constant($classname.'::CONSTANT');

is there any similar way for members?

thanks,
- rainer

[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

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