March 2002
Intermediate to advanced
528 pages
21h 29m
English
version_compare
int version_compare(stringone, stringtwo[, stringoperator])
Compares two strings of the format
“4.1.0” and returns
-1 if one is less than
two, 0 if they are
equal, and 1 if one is
greater than two. If
operator is specified, the operator is
used to make a comparison between the version strings, and the value
of the comparison using that operator is returned. The possible
operators are < or lt;
<= or le;
> or gt;
>= or ge;
==, =, or
eq; and !=,
<>, and ne.