Question

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.

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top