是的,stripos函數可以忽略大小寫進行檢索。可以在函數的第三個參數中傳入常量值STR_CASE_INSENSITIVE來實現忽略大小寫的檢索。示例代碼如下:
$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.';
}