You are here: Re: Returning a null reference in PHP 4.4.2 « PHP Programming Language « IT news, forums, messages
Re: Returning a null reference in PHP 4.4.2

Posted by jamiesonhale on 08/03/06 21:11

Colin McKinnon wrote:
> But doesn't this work:
>
> function & getAttribute($name)
> {
> return $this->attributes[$name];
> }

Hmmm. I could have swore that threw an error too if the key wasn't
set... Am I thinking an older version? (Another language?)

That seems to work. I'll have to re-work a large chunk of code, but
that seems to do it. Thanks. :)

J

 

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

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