substr_compare Binary safe comparison of 2 strings from an offset, up to length characters &reftitle.description; intsubstr_compare stringmain_str stringstr intoffset intlength boolcase_insensitivity substr_compare compares main_str from position offset with str up to length characters. &reftitle.parameters; main_str str offset The start position for the comparison. If negative, it starts counting from the end of the string. length The length of the comparison. case_insensitivity If case_insensitivity is &true;, comparison is case insensitive. &reftitle.returnvalues; Returns < 0 if main_str from position offset is less than str, > 0 if it is greater than str, and 0 if they are equal. If length is equal or greater than length of main_str and length is set, substr_compare prints warning and returns &false;. &reftitle.changelog; &Version; &Description; 5.1.0 Added the possibility to use a negative offset. &reftitle.examples; A <function>substr_compare</function> example ]]>