<?php
error_reporting(-1);
setlocale(LC_COLLATE, 'tr_TR.utf8'); // or any other locale I use.
$aInput['values'] = array('foo',1,'bar',2,'baz',true,'quux',false,'abc',null);
uasort($aInput['values'],'strcoll');
var_dump($aInput['values']);
Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6
Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6
Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6
Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6
Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6
Deprecated: strcoll(): Passing null to parameter #2 ($string2) of type string is deprecated in /in/PQdXZ on line 6
array(10) {
[7]=>
bool(false)
[9]=>
NULL
[1]=>
int(1)
[5]=>
bool(true)
[3]=>
int(2)
[8]=>
string(3) "abc"
[2]=>
string(3) "bar"
[4]=>
string(3) "baz"
[0]=>
string(3) "foo"
[6]=>
string(4) "quux"
}