You are here: Re: private var = $_SESSION['var']; « PHP Programming Language « IT news, forums, messages
Re: private var = $_SESSION['var'];

Posted by turnitup on 10/18/07 09:20

Rik Wasmus wrote:
> On Tue, 16 Oct 2007 21:12:05 +0200, turnitup <same@same> wrote:
>> Any idea why this fails in a class declaration?
>
> RTFM
>
> http://www.php.net/manual/en/language.oop5.basic.php
> "The default value must be a constant expression, not (for example) a
> variable, a class member or a function call."
> --Rik Wasmus

Thank you Rik. I knew it could not accept functions, I did not know
about session vars.

 

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

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