<?php strpos(string $haystack, string $needle, int $offset = 0): int|false
<?php $lengthPath = strlen($path) - 1; if (false !== $pos = strpos($path, '?')) { $path = substr($path, 0, $pos); }
<?php } if (false !== $pos = strpos($path, '&')) { $path = substr($path, 0, $pos); }