Hi all

This function I don't get at all, I hear all the time, "if you want to
practice smart coding then turn register globals off, and be sure you keep
query data out of your script that is not set or defined with something
expected". So why would there be a function that returns true or false, $var
is empty even if $var is not defined! Now I know you can do bool(), but the
function name (empty()) really states one thing "Does it have a value or (!)
not have value" and not "Does have a value or does (!) not have a value and
may be undefined too!" If you don't want to correct it then at least give a
warning if the $var being tested is undefined!~

This is a function that does more than it should do, and in this case more
is bad!

C, Ya...

John

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

Reply via email to