Is the stripos function returning 0 false? Why is there an error in judgment and how to correctly understand this return value?
In PHP, the scripos function is used to find the position of a string in another string (case insensitive). This function returns the location index found, or if not found, returns false. However, when the scripos function returns 0, many developers mistakenly think it is false because the number 0 and the boolean value false are equivalent. So, is the scripos function returning 0 false? Why are there any mistakes in judgment? How should we correctly understand this return value? Next, we answer these questions one by one.
stripos