str_ends_with
检查字符串是否以指定子串结尾
&reftitle.description;
boolstr_ends_with
stringhaystack
stringneedle
执行大小写区分的检查,表明 haystack 是否以 needle 结尾。
&reftitle.parameters;
haystack
在其中搜索的字符串。
needle
要在 haystack 中搜索的子串。
&reftitle.returnvalues;
如果 haystack 以 needle 结尾,返回 &true;,否则返回 &false;。
&reftitle.examples;
使用空字符串 ''
]]>
&example.outputs;
展示大小写区分
]]>
&example.outputs;
&reftitle.notes;
¬e.bin-safe;
&reftitle.seealso;
str_contains
str_starts_with
stripos
strrpos
strripos
strstr
strpbrk
substr
preg_match