! and !=
| From: | George Langley | Date: | Wed, 22 Apr 2009 22:30:34 +0000 |
| Subject: | ! and != | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-291836@lists.php.net to get a copy of this message | ||
Hi all. Maybe I'm just getting confused by all the languages I'm trying to work with!
But, isn't:
if(!$var1 == $var2){
the same thing as
if($var1 != $var2){
#1 doesn't work, #2 does.
Thanks!
George Langley Multimedia Developer Audio/Video Editor Musician, Arranger, Composer
www.georgelangley.ca
"Too many choices, too little sleep."