1--TEST--
2Test strnatcmp() function : left align, whitespace, digits
3--CREDITS--
4Sol Richardson <sr5732358@hotmail.com>
5--FILE--
6<?php
7echo "-- Testing strnatcmp() function whitespace, left-align, digit --\n";
8echo "-- Leading whitespace, digits, string 1 longer --\n";
9$str1 = " 00";
10$str2 = " 0";
11var_dump( strnatcmp( $str1, $str2) );
12
13echo "-- Leading whitespace, digits, string 2 longer --\n";
14$str1 = " 0";
15$str2 = " 00";
16var_dump( strnatcmp( $str1, $str2) );
17?>
18--EXPECT--
19-- Testing strnatcmp() function whitespace, left-align, digit --
20-- Leading whitespace, digits, string 1 longer --
21int(1)
22-- Leading whitespace, digits, string 2 longer --
23int(-1)
24