You are here: Re: Variable Variables in Classes « PHP Programming Language « IT news, forums, messages
Re: Variable Variables in Classes

Posted by Ambush Commander on 05/17/06 22:35

It looks like in this particular case, $this->$x should be sufficient.
Otherwise, you may have to split up x into $x_object and $x_name
(exploding by -> should be sufficient) and calling $x_object->$x_name.
What you currently have, however, cannot be done.

 

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

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