strncmp
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Binary safe string comparison of the first n characters
strncmp
(
string $string1
,
string $string2
,
int $length
):
int
protected function
isImmutableCustomDateTimeCast
(
$cast
)
{
return
strncmp
(
$cast
,
'immutable_date:'
,
15
) ===
0
||
strncmp
(
$cast
,
'immutable_datetime:'
,
19
) ===
0
;
}
src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
protected function
isImmutableCustomDateTimeCast
(
$cast
)
{
return
strncmp
(
$cast
,
'immutable_date:'
,
15
) ===
0
||
strncmp
(
$cast
,
'immutable_datetime:'
,
19
) ===
0
;
}
src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
if (
is_array
(
$action
) &&
!
Arr
::
isAssoc
(
$action
) &&
Reflector
::
isCallable
(
$action
)) {
if (
strncmp
(
$action
[
0
],
'\\'
,
1
)) {
$action
[
0
] =
'\\'
.
$action
[
0
];
}
$action
= [
src/Illuminate/Routing/RouteRegistrar.php