[PHP] re: an if statement

2004-03-26 Thread David Robley
[EMAIL PROTECTED] (Andy B) wrote in news:[EMAIL PROTECTED]: >> although that'll generally "work", why not use >> >> if(empty($name) || empty($comments)) >> { dosomething(); } >> >> -- >> ---John Holmes... > > > because for some odd reason on any of the versions of php i am writing > for (4.0.6

[PHP] Re: an if statement

2004-03-22 Thread Evgeny Pedya
Hello, Andy! You wrote on Mon, 22 Mar 2004 22:59:02 -0500: AB> was just wondering if the statement: AB> if(!$name || !$comments){ AB> /*whatever here*/ } AB> would be interpreted as : if either $name or $comments doesn't exist AB> then AB> or how would the if statement be?? i need to

[PHP] re: an if statement

2004-03-22 Thread Andy B
> although that'll generally "work", why not use > > if(empty($name) || empty($comments)) > { dosomething(); } > > -- > ---John Holmes... because for some odd reason on any of the versions of php i am writing for (4.0.6-4.1.3) it always fails -- PHP General Mailing List (http://www.php.net/) T