what is the syntax of the STRCOLL() function in php?
strcoll(string1,string2)
Parameter | Description |
---|---|
string1 | Required. Specifies the first string to compare |
string2 | Required. Specifies the second string to compare |
examples of the STRCOLL() function in php
Example 1. In this example, we compare strings.
<?php
setlocale (LC_COLLATE, 'NL');
echo strcoll("Hello World!","Hello World!");
echo "<br>";
setlocale (LC_COLLATE, 'en_US');
echo strcoll("Hello World!","Hello World!");
?>