It looks to me like the value of an assignment is the value assigned, as in
Perl. But I don't know for sure, haven't come across this in the manual.

Kirk

> -----Original Message-----
> From: Dan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 3:29 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] assignment operator works for comparison??
> 
> 
> 
> >
> >  > if($shiny = 0){
> > This does not compare anyting, it assigns 0 to $shiny
> 
> yes i know, but shouldnt this operation return true?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to