Re: Initializing variables
| From: | M. Sokolewicz | Date: | Fri, 05 Nov 2004 22:04:09 +0000 |
| Subject: | Re: Initializing variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201337@lists.php.net to get a copy of this message | ||
Stuart Felenstein wrote:
I'm reading PHP security paper by Chris Shiflett. Trying to figure out what is meant by first initializing a variable. Now, just for the record, I'm not completely dumb. I know you can start with a $var = 2 What I want to know is if the variable assignment is unknown, as in a user form. Would I then just initialize the variables to 0 ? Stuart test it using at least isset(), and after that do some sanity checks to make sure the user didn't input some bogus data