PHP strpos()对我来说是区分大小写的

PHP strpos()对我来说是区分大小写的,php,strpos,Php,Strpos,当我使用strpos()时,它区分大小写。为什么?不应该是吗 PHPV5.3.8 $file_check_result = "%PDF-1.6 %âãÏÓ"; $test = strpos($file_check_result, "pdf"); echo $test; 无输出;但是,如果我在strpos中将pdf更改为pdf,它会显示位置。为什么?stripos是您正在寻找的功能STRPO区分大小写 不区分大小写的是(注意i): 该死的,我想我太累了,因为我把“不区分大小写”读成区分大小写,当

当我使用
strpos()
时,它区分大小写。为什么?不应该是吗

PHPV5.3.8

$file_check_result = "%PDF-1.6 %âãÏÓ";
$test = strpos($file_check_result, "pdf");
echo $test;

无输出;但是,如果我在
strpos
中将
pdf
更改为
pdf
,它会显示位置。为什么?

stripos
是您正在寻找的功能<代码>STRPO区分大小写


不区分大小写的是(注意i):


该死的,我想我太累了,因为我把“不区分大小写”读成区分大小写,当我读得快的时候,我有时会跳过意思。。。
strpos()   // Finds the position of the first occurrence (case-sensitive)
stripos()  // Finds the position of the first occurrence (case-insensitive)
strrpos()  // Finds the position of the last occurrence (case-sensitive)
strripos() // Finds the position of the last occurrence (case-insensitive)