strtok
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tokenize string
strtok
(
string $string
,
string $token
):
string
|
false
$type
=
strtolower
(
$type
);
if (
$this
->
matchesType
(
$accept
,
$type
) ||
$accept
===
strtok
(
$type
,
'/'
).
'/*'
) {
return
true
;
}
}
src/Illuminate/Http/Concerns/InteractsWithContentTypes.php
$type
=
strtolower
(
$type
);
if (
$this
->
matchesType
(
$type
,
$accept
) ||
$accept
===
strtok
(
$type
,
'/'
).
'/*'
) {
return
$contentType
;
}
}
src/Illuminate/Http/Concerns/InteractsWithContentTypes.php