Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tokenize string
strtok(string $stringstring $token): string|false
                $type strtolower($type);



                if (
$this->matchesType($accept$type) || $accept === strtok($type'/').'/*') {

                    return 
true;

                }

            }
                $type strtolower($type);



                if (
$this->matchesType($type$accept) || $accept === strtok($type'/').'/*') {

                    return 
$contentType;

                }

            }