Home>Article>Backend Development> Is substr_compare() case sensitive in php?
PHP substr_compare() function
##Definition and usage
substr_compare() function compares two strings from the specified starting position.Tip:This function is binary safe and optionally case sensitive (case sensitive).
Grammar(Recommended learning:PHP video tutorial)
substr_compare(string1,string2,startpos,length,case)
Parameter description:
Boolean value specifying whether to perform case-sensitive comparisons:
FALSE - Default. Case sensitive TRUE - Not case sensitiveThis function returns:
Example:
The above is the detailed content of Is substr_compare() case sensitive in php?. For more information, please follow other related articles on the PHP Chinese website!