Re: no default value

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

 



Man-wai Chang wrote:
> Is there a parameter in php.ini that requires all variables to be
> explicitly initialized, rather than being automatically assigned the
> value of false?

I think you'll find they get assigned the value of null, not false.

There is no setting that enforces such a requirement, but you can get
some of the way there by enabling the display of notices which will tell
you whenever a variable is used without being initialised.

-Stut

-- 
http://stut.net/

-- 
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