Re: assignment operator works for comparison??
| From: | Dan | Date: | Tue, 10 Apr 2001 21:47:53 +0000 |
| Subject: | Re: assignment operator works for comparison?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48088@lists.php.net to get a copy of this message | ||
You are right, thank you.
> 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
>
> > > > if($shiny = 0){
> > > This does not compare anyting, it assigns 0 to $shiny
> >
> > yes i know, but shouldnt this operation return true?