Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Outputs or returns a parsable string representation of a variable
<?php var_export(mixed $value, bool $return = false): ?string
<?php         if (is_scalar($value) || $value === null) {

            return new self(sprintf(

                'Could not convert PHP value %s to type %s. Expected one of the following types: %s',

                var_export($value, true),

                $toType,

                implode(', ', $possibleTypes)

            ), 0, $previous);