Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tokenize string
<?php strtok(string $string, string $token): string|false
<?php             return [

                'name' => $result->name,

                'type_name' => strtok($type, '(') ?: '',

                'type' => $type,

                'collation' => $collation,

                'nullable' => (bool) $result->nullable,
<?php                 $type = strtolower($type);



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

                    return true;

                }

            }
<?php                 $type = strtolower($type);



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

                    return $contentType;

                }

            }