You are here: Dyanmically Call Static Member « PHP Programming Language « IT news, forums, messages
Dyanmically Call Static Member

Posted by ryanmhuc on 05/05/06 18:14

Is it possible to dyanmically call a classes static member or property?
So something like

class test1 {
static $staticVar = "Help";
}

$className = "test1";
echo $className::$staticVar;

This produces an error. Does anyone know if its possible? Thanks

 

Navigation:

[Reply to this 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

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