rtrim
brefphp/bref
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Strip whitespace (or other characters) from the end of a string
Alias
chop
rtrim
(
string $string
,
string $characters
=
" \n\r\t\v\x00"
):
string
{
$updatedStaticLoader
=
str_replace
(
"__DIR__ . '/../..'"
,
sprintf
(
"'%s'"
,
rtrim
(
getenv
(
'LAMBDA_TASK_ROOT'
),
'/'
)),
file_get_contents
(
self
::
AUTOLOAD_STATIC_PATH
)
);
runtime/layers/console/breftoolbox.php
{
$updatedStaticLoader
=
str_replace
(
"__DIR__ . '/../..'"
,
sprintf
(
"'%s'"
,
rtrim
(
getenv
(
'LAMBDA_TASK_ROOT'
),
'/'
)),
file_get_contents
(
self
::
AUTOLOAD_STATIC_PATH
)
);
runtime/layers/fpm/breftoolbox.php
{
$updatedStaticLoader
=
str_replace
(
"__DIR__ . '/../..'"
,
sprintf
(
"'%s'"
,
rtrim
(
getenv
(
'LAMBDA_TASK_ROOT'
),
'/'
)),
file_get_contents
(
self
::
AUTOLOAD_STATIC_PATH
)
);
runtime/layers/function/breftoolbox.php