Re: [PHP-WIN] String Compare

2003-02-12 Thread Cam Dunstan
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 P

Re: [PHP-WIN] String Compare

2003-02-12 Thread Piotr Pluciennik
Have you tried strcasecmp() or strcmp()? See the manual for reference. Piotr --- Brennan Mann <[EMAIL PROTECTED]> wrote: > 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: