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 {

    public static function withVisibility(string $visibility, string $expectedMessage): InvalidVisibilityProvided

    {

        $provided = var_export($visibility, true);

        $message = "Invalid visibility provided. Expected {$expectedMessage}, received {$provided}";



        throw new InvalidVisibilityProvided($message);
<?php         $key = '';



        foreach ($arguments as $argument) {

            $key .= var_export($argument, true);

        }



        return $key;
<?php         $key = '';



        foreach ($arguments as $argument) {

            $key .= var_export($argument, true);

        }



        return $key;