RE: [PHP] assignment operator works for comparison??

From: Date: Tue, 10 Apr 2001 21:39:16 +0000
Subject: RE: [PHP] assignment operator works for comparison??
Groups: php.general 
Request: Send a blank email to php-general+get-48086@lists.php.net to get a copy of this message
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:iridium77@hotmail.com] > Sent: Tuesday, April 10, 2001 3:29 PM > To: php-general@lists.php.net > 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?

« previous php.general (#48086) next »