是的,stripos函數(shù)可以忽略大小寫進行檢索。可以在函數(shù)的第三個參數(shù)中傳入常量值STR_CASE_INSENSITIVE來實現(xiàn)忽略大小寫的檢索。示例代碼如下:
$string = 'Hello, World!';
$pos = stripos($string, 'hello', 0, STR_CASE_INSENSITIVE);
if ($pos !== false) {
echo 'The word "hello" is found in the string.';
} else {
echo 'The word "hello" is not found in the string.';
}