To check if a string contains another string in PHP in a case-insensitive manner, you can use the stripos() function. stripos() returns the position of the first occurrence of a substring in a string, or false if the substring is not found, and it performs a case-insensitive search.
Source code viewer
$string = "Hello World"; $substring = "hello"; echo "Substring found in the string."; } else { echo "Substring not found in the string."; }Programming Language: PHP