Re: [PHP] if(isset($a)) vs if($a)

2001-09-16 Thread CC Zona
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

Re: [PHP] if(isset($a)) vs if($a)

2001-09-16 Thread Mark
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

Re: [PHP] if(isset($a)) vs if($a)

2001-09-16 Thread CC Zona
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]

Re: [PHP] if(isset($a)) vs if($a)

2001-09-15 Thread CC Zona
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.

Re: [PHP] if(isset($a)) vs if($a)

2001-09-15 Thread Mark
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,

RE: [PHP] if(isset($a)) vs if($a)

2001-09-14 Thread Jack Dempsey
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