Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top