2 /* Prototype : int strnatcasecmp(string s1, string s2)
3 * Description: Returns the result of case-insensitive string comparison using 'natural' algorithm
4 * Source code: ext/standard/string.c
8 function str_dump($one, $two) {
9 var_dump(strnatcasecmp($one, $two));
12 echo "*** Testing strnatcasecmp() : basic functionality ***\n";
14 // Calling strnatcasecmp() with all possible arguments
16 str_dump('a10', 'A20');
18 str_dump('x2-y7', 'x8-y8');
19 str_dump('1.010', '1.001');
20 str_dump(' ab', ' aB');
21 str_dump('acc ', 'acc');
23 str_dump(10.5, 10.5E1
);
24 str_dump('Rfc822.txt', 'rfc2086.txt');
25 str_dump('Rfc822.txt', 'rfc822.TXT');
26 str_dump('pIc 6', 'pic 7');
27 str_dump(0xFFF, 0Xfff);