<?php strstr(string $haystack, string $needle, bool $before_needle = false): string|false
<?php if ($position !== false) { $header = substr($header, $position + 7); return str_contains($header, ',') ? strstr($header, ',', true) : $header; } }
<?php return $subject; } $result = strstr($subject, (string) $search, true); return $result === false ? $subject : $result; }