Re: comparing a string

From: Date: Fri, 23 Jun 2006 15:46:06 +0000
Subject: Re: comparing a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-238561@lists.php.net to get a copy of this message
At 9:28 PM -0500 6/21/06, Rafael wrote: snip
The only possible values of strcmp() are: 1, 0 & -1.
Hmmm. My manual says: "Compares two strings; returns a number less than 0 if the first string is less than the second, 0 if the two strings are equal, and a number greater than 0 if the first string is greater than the second." Sounds like values other than -1, 0, and +1 are possible.
     -----===== Bill =====-----
-- 

You never know who's right, but you always know who's in charge.
   


« previous php.general (#238561) next »