RE: [PHP] Session Variables ~ Best Practices
| From: | Jay Blanchard | Date: | Tue, 13 Jul 2004 16:57:35 +0000 |
| Subject: | RE: [PHP] Session Variables ~ Best Practices | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190371@lists.php.net to get a copy of this message | ||
[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.