(PHP 5)substr_compare -- Binary safe optionally case insensitive comparison of 2 strings from an offset, up to length characters
Returns < 0 if
main_str from position
offset is less than
0 if it is greater than
str, and 0 if they are equal.
length is equal or greater than length of
length is set,
substr_compare() prints warning and returns FALSE.
case_insensitivity is TRUE, comparison is case
Example 1. A substr_compare() example