comparing strings does not work
| From: | andy | Date: | Tue, 11 Jun 2002 13:10:02 +0000 |
| Subject: | comparing strings does not work | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101539@lists.php.net to get a copy of this message | ||
Hi there,
I would like to compare 2 strings.
I do always get a 0 return (not equal) but they are difinatelly equal, I
double checked it. They are just in two different vars.
Here is how I did it:
if (strcmp($city, $city_new) != 0) $error = true;
Does anybody see the error? Or am I going the wrong way?
Andy