Re: note 28312 added to language.operators.comparison

From: Date: Thu, 09 Jan 2003 01:20:34 +0000
Subject: Re: note 28312 added to language.operators.comparison
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41875@lists.php.net to get a copy of this message
Ehem, The operator returns a boolean type var, not a number. Try the following code: $v = 12 <> 5; var_dump($v); $w = 12 != 5; var_dump($w); And you will see. Your note will be removed --- kev_liverpool@hotmail.com wrote: > i found that "<>" Returned the value to be greater > than the original values. > -- > http://www.php.net/manual/en/language.operators.comparison.php > http://master.php.net/manage/user-notes.php?action=edit+28312 > http://master.php.net/manage/user-notes.php?action=delete+28312 > http://master.php.net/manage/user-notes.php?action=reject+28312 > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

« previous php.notes (#41875) next »