The substr_compare() function used for compares two strings from a start position.
Syntax
substr_compare(string1,string2,startpos,length,case)
Example
echo substr_compare("Hello dear","Hello dear",0);
Output
0
Copyright ©2022 coderraj.com. All Rights Reserved.