src/ADT/String.php
public function compareTo( $string, $caseSense = TRUE )
	{
		$method	= $caseSense ? "strcmp" : "strcasecmp";
		return call_user_func( $method, $this->string, $string );
	}
public function compareTo( $string, $caseSense = TRUE )
	{
		$method	= $caseSense ? "strcmp" : "strcasecmp";
		return call_user_func( $method, $this->string, $string );
	}
public function compareTo ( $ string , $ caseSense = TRUE ) { $ method = $ caseSense ? "strcmp" : "strcasecmp" ; return call_user_func ( $ method , $ this -> string , $ string ) ; }
Compares this string to another string.
Returns negative value is this string is less, positive of this string is greater and 0 if both are equal.
@access		public
@param		string		$string			String to compare to
@param		bool		$caseSense		Flag: be case sensitive
@return		int			Indicator for which string is less, 0 if equal
@see		http://www.php.net/manual/en/function.strcmp.php
@see		http://www.php.net/manual/en/function.strcasecmp.php
Compares this string to another string . Returns negative value is this string is less positive of this string is greater and 0 if both are equal .