Gen. partnerAlgotech

PHP function strcoll()

Locale based string comparison

|
September 11, 2019

Availability in versions: PHP 4.0.5

Locale based string comparison

Parameters

Parameter Data type Default value Note
$str1 string not The first string.
$str2 string not The second string.

Return values

int

< 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.

Other resources

Official strcoll documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.