import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-strings / strnatcasecmp_basic.php
blob20e269bada52410dad7115fa8fafc6453340bf9e
1 <?php
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
5 * Alias to functions:
6 */
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
15 str_dump('A', 'a');
16 str_dump('a10', 'A20');
17 str_dump('A1b', 'a');
18 str_dump('x2-y7', 'x8-y8');
19 str_dump('1.010', '1.001');
20 str_dump(' ab', ' aB');
21 str_dump('acc ', 'acc');
22 str_dump(11.5, 10.5);
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);
30 ===DONE===