In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Mark) wrote:
if(isset($) and !empty($a) and !$a)
this is the same as if(!empty($a))
or
if(isset($) and $a===FALSE)
this is the same as if(empty($a))
(Aside from accidentally omitted the a in the var name...oops...)
No, they're not
On Sun, 16 Sep 2001 09:18:23 -0700, CC Zona wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Mark) wrote:
if(isset($) and !empty($a) and !$a)
this is the same as if(!empty($a))
or
if(isset($) and $a===FALSE)
this is the same as if(empty($a))
Aside from accidentally omitted the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Mark) wrote:
calling empty($a) does not give a warning.
Sheesh. It doesn't at that. WTF?
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Andrew Perevodchik) wrote:
JD isset checks to see if the $a variable has
JD been set, ie, if it exists. if($a) checks for
JD the truthood of $a, meaning, if it has a
JD non-zero, non-null/empty-string value, then
JD its true, else, false.
On Sat, 15 Sep 2001 13:20:59 -0700, CC Zona wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Andrew Perevodchik) wrote:
JD isset checks to see if the $a variable has
JD been set, ie, if it exists. if($a) checks for
JD the truthood of $a, meaning, if it has a
JD non-zero,
isset checks to see if the $a variable has been set, ie, if it exists.
if($a) checks for the truthood of $a, meaning, if it has a non-zero,
non-null/empty-string value, then its true, else, false.
jack
-Original Message-
From: David Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, September
6 matches
Mail list logo