Re: Initializing variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

// I assign null to the variable if I'm not sure what type it's going to have. $var = null;


// 0 and FALSE are also ok choices, I try to use them for integers or booleans

// If you're talking about I think you're talking about (register_globals) then // isset() won't suffice because the $_POST and $_GET indices get registered as // global variables automatically.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux