Lines Matching refs:strnatcmp
2 Test strnatcmp() function : basic functionality
5 /* Prototype : int strnatcmp ( string $str1 , string $str2 )
9 echo "*** Testing strnatcmp() : basic functionality ***\n";
22 var_dump(strnatcmp($a1, $b1));
23 var_dump(strnatcmp($a1, $c1));
24 var_dump(strnatcmp($a1, $d1));
25 var_dump(strnatcmp($b1, $c1));
26 var_dump(strnatcmp($d1, $c1));
28 var_dump(strnatcmp($a1, $b2));
29 var_dump(strnatcmp($a1, $c2));
30 var_dump(strnatcmp($a1, $d2));
31 var_dump(strnatcmp($b1, $c2));
32 var_dump(strnatcmp($d1, $c2));
36 var_dump(strnatcmp($b1, $b1));
37 var_dump(strnatcmp($b1, $b2));
40 var_dump(strnatcmp($b1, $a1));
41 var_dump(strnatcmp($c1, $a1));
42 var_dump(strnatcmp($d1, $a1));
43 var_dump(strnatcmp($c1, $b1));
44 var_dump(strnatcmp($c1, $d1));
46 var_dump(strnatcmp($b1, $a2));
47 var_dump(strnatcmp($c1, $a2));
48 var_dump(strnatcmp($d1, $a2));
49 var_dump(strnatcmp($c1, $b2));
50 var_dump(strnatcmp($c1, $d2));
54 *** Testing strnatcmp() : basic functionality ***