Brennan You should confine those sorts of comparisons to numbers if($num == 1000)
For strings, use strcmp() if (strcmp($s1, $s2) ==0){echo "these strings are identical"; } be aware that it is case sensitive. ----- Original Message ----- From: "Brennan Mann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 2:33 AM Subject: [PHP-WIN] String Compare > Hello Everybody, > > Is there a way to do a hex view on strings. Right now my if statement is > evaluating to false when I compare these two strings: > S1: 1000 > S2: 1000 > If ($s1 == $s2) should evaluate to true not to false. > I tried a couple different things to see if I could get it the statement to > evaluate to true and this worked: > if($string1 == "1000"), but I can't get it to work with both variables. Both > variables are string type. Any Ideas? > > Thanks, > Brennan > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php