Easy Tutorial
❮ Func Mysqli Refresh Func Mysqli Get Charset ❯

PHP strcoll() Function

PHP String Reference Manual

Example

Comparing strings:


Definition and Usage

The strcoll() function compares two strings.

The comparison of strings varies according to the locale settings (A<a or A>a).

Note: strcoll() is case-sensitive but not binary-safe.

Note: If the current locale setting is C or POSIX, this function behaves the same as strcmp().


Syntax

Parameter Description
string1 Required. Specifies the first string to compare.
string2 Required. Specifies the second string to compare.

Technical Details

Return Value: The function returns: 0 - if the two strings are equal<br> <0 - if string1 is less than string2<br> >0 - if string1 is greater than string2
PHP Version: 4.0.5+
--- ---
Changelog: Works on win32 since PHP 4.2.3.
--- ---
❮ Func Mysqli Refresh Func Mysqli Get Charset ❯