Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tells whether a file exists and is readable
is_readable(string $filename): bool
        $process Process::fromShellCommandline($commandnullnullnullnull);



        if (
'\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) {

            try {

                
$process->setTty(true);

            } catch (
RuntimeException $e) {
    public function read(): array

    {

        
$state is_readable($this->path)

                    ? 
json_decode(file_get_contents($this->path), true)

                    : [];
    public function read(): array

    {

        
$state is_readable($this->path)

                    ? 
json_decode(file_get_contents($this->path), true)

                    : [];