I am using the stripos function to check if a string is located inside another string, ignoring any cases.
Here is the problem:
stripos("?", "?")
returns false. While
stripos("?", "?")
returns true.
As you might see, it looks like the function does NOT do a case-insensitive search in this case.
The function has the same problems with characters like ?? and ??. These are Danish characters.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…