Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is a resource
<?php is_resource(mixed $value): bool
<?php                 $value,

                match (true) {

                    is_int($value) => PDO::PARAM_INT,

                    is_resource($value) => PDO::PARAM_LOB,

                    default => PDO::PARAM_STR

                },

            );
<?php                 return true;

            }



            is_resource($contents)

                ? $this->driver->writeStream($path, $contents, $options)

                : $this->driver->write($path, $contents, $options);

        } catch (UnableToWriteFile|UnableToSetVisibility $e) {
<?php             $path = trim($path.'/'.$name, '/'), $stream, $options

        );



        if (is_resource($stream)) {

            fclose($stream);

        }