As the heading suggests, are there any wildcard characters(like % or * in c++) for usage with stripos()? I was planning to use preg_match but it says on "The preg_match Manual" that I should use strpos() or strstr() if I need to search for a string within a string as it is faster.

有帮助吗?

解决方案

No, stripos() does not accept any wildcards, it expects a literal string to use for matching.

stripos - http://www.php.net/manual/en/function.stripos.php

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top