strrchr
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find the last occurrence of a character in a string
strrchr
(
string $haystack
,
string $needle
):
string
|
false
$reflect
= new
\ReflectionClass
(
$this
);
$namespace
=
$reflect
->
getNamespaceName
();
return
substr
(
strrchr
(
$namespace
,
"\\"
),
1
);
}
}
src/Intervention/Image/AbstractDriver.php