[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
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
> 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
3 matches
Mail list logo