| Аргумент | Возможный тип | Описание |
| $haystack | — | — |
| $needle | — | — |
| $where | — | — |
$defpos = 10000;
if (!is_array($needle)) {
$needle = array($needle);
}
foreach ($needle as $what) {
if (($pos = strpos($haystack, $what, $where)) !== false) {
if ($pos < $defpos) {
$defpos = $pos;
}
}
}
return $defpos;