Lines Matching refs:range
2 Test range() function with unexpected string inputs
9 var_dump( range("AA", "BB") );
12 var_dump( range("Z", "") ); // Both strings are cast to int, i.e. 0
13 var_dump( range("", "Z") ); // Both strings are cast to int, i.e. 0
16 var_dump( range("3.5", "A") ); // The char is cast to a float, i.e. 0
17 var_dump( range("?", "3.5") ); // The char is cast to a float, i.e. 0
20 var_dump( range("A", "H", 2.6) ); // Because step is fractional it tries to interpret inputs as flo…
27 Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in %s on…
29 Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in %s on l…
38 Warning: range(): Argument #2 ($end) must not be empty, casted to 0 in %s on line %d
40 Warning: range(): Argument #2 ($end) must be a single byte string if argument #1 ($start) is a sing…
46 Warning: range(): Argument #1 ($start) must not be empty, casted to 0 in %s on line %d
48 Warning: range(): Argument #1 ($start) must be a single byte string if argument #2 ($end) is a sing…
55 Warning: range(): Argument #1 ($start) must be a single byte string if argument #2 ($end) is a sing…
67 Warning: range(): Argument #2 ($end) must be a single byte string if argument #1 ($start) is a sing…
80 Warning: range(): Argument #3 ($step) must be of type int when generating an array of characters, i…