February 2013
Intermediate to advanced
538 pages
20h 55m
English
substr_compare
int substr_compare(stringfirst, stringsecond, stringoffset[, intlength[, boolcase_insensitivity]])
Compares first, starting at the
position offset, to
second. If
length is specified, a maximum of that many
characters are compared. Finally, if
case_insensitivity is specified and
true, the comparison is
case-insensitive. Returns a number less than 0 if the substring of
first is less than
second, 0 if they are equal, and a number
greater than 0 if the substring of first is
greater than second.
Read now
Unlock full access