Re: Session Variables ~ Best Practices

From: Date: Wed, 14 Jul 2004 15:41:00 +0000
Subject: Re: Session Variables ~ Best Practices
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190492@lists.php.net to get a copy of this message
thanks Jay. -- ----------------------------- Michael Mason Arras People www.arraspeople.co.uk ----------------------------- "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message news:C8F323573C030A448F3E5A2B6FE2070B035226EE@nemesis... [snip] I am also wondering if I need to declare all my variables one after the other or can I simply declare variables that I will be using immediately upon submission. [/snip] Since PHP is not strongly typed (like C or C++) you need not declare any variables. There are some caveats (see http://www.php.net/error_reporting ). Is it good practice? Not really, especially if you have a shop where more than one developer may be touching the code.

« previous php.general (#190492) next »