str_ends_with
laravel/octane
Supported Versions: PHP 8
Checks if a string ends with a given substring
str_ends_with
(
string $haystack
,
string $needle
):
bool
{
$pathAfterSymlink
=
$this
->
pathAfterSymlink
(
$publicPath
,
$request
->
path
());
return
$pathAfterSymlink
&&
str_ends_with
(
$pathToFile
,
$pathAfterSymlink
);
}
src/Swoole/SwooleClient.php