Re: array method attributes (OO)

From: Date: Fri, 08 Aug 2003 15:14:15 +0000
Subject: Re: array method attributes (OO)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158856@lists.php.net to get a copy of this message
Hello, This is a reply to an e-mail that you wrote on Fri, 8 Aug 2003 at 15:54, lines prefixed by '>' were originally written by you. > array $SESSION; near the beginning gives the error > Parse error: parse error, unexpected T_ARRAY, expecting T_OLD_FUNCTION > or > T_FUNCTION or T_VAR or '}' in > d:wwwrootstwerburghs.orgobjcontacts.obj.php on line 6 > Fatal error: Cannot instantiate non-existent class: contacts in > d:wwwrootstwerburghs.orgcmslist_contacts.php on line 9 > At 14:44 08/08/2003 +0100, David Nicholson wrote: Ah, didn't spot that, just use var instead of array, if you want it to start off as a blank array, use: var $SESSION = array(); David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Free PHP error handling script: www.phpmachine.com/error-handler/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/

« previous php.general (#158856) next »