file_get_contents
laravel/octane
Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Reads entire file into a string
file_get_contents
(
string $filename
,
bool $use_include_path
=
false
,
?
resource $context
=
null
,
int $offset
=
0
,
?
int $length
=
null
):
string
|
false
public function
read
(): array
{
$state
=
is_readable
(
$this
->
path
)
?
json_decode
(
file_get_contents
(
$this
->
path
),
true
)
: [];
return [
src/RoadRunner/ServerStateFile.php
public function
read
(): array
{
$state
=
is_readable
(
$this
->
path
)
?
json_decode
(
file_get_contents
(
$this
->
path
),
true
)
: [];
return [
src/Swoole/ServerStateFile.php