R3m/framework Function reference string.compare.natural

{string.compare.natural(String $string1, String $string2)}

String comparisons using a "natural order" algorithm.

This function implements a comparison algorithm that orders alphanumeric strings in the way a human being would, this is described as a "natural ordering".
Note that this comparison is case-sensitive.

Similar to other string comparison functions, this one returns an integer < 0 if string1 is less than string2; > 0 if string1 is greater than string2, and 0 if they are equal.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com