strcasecmp
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Binary safe case-insensitive string comparison
strcasecmp
(
string $string1
,
string $string2
):
int
public function
prefetch
()
{
return
strcasecmp
(
$this
->
server
->
get
(
'HTTP_X_MOZ'
) ??
''
,
'prefetch'
) ===
0
||
strcasecmp
(
$this
->
headers
->
get
(
'Purpose'
) ??
''
,
'prefetch'
) ===
0
;
}
src/Illuminate/Http/Request.php
public function
prefetch
()
{
return
strcasecmp
(
$this
->
server
->
get
(
'HTTP_X_MOZ'
) ??
''
,
'prefetch'
) ===
0
||
strcasecmp
(
$this
->
headers
->
get
(
'Purpose'
) ??
''
,
'prefetch'
) ===
0
;
}
src/Illuminate/Http/Request.php