src/Util/Text.php
public static function dump($value, $quote = '"')
    {
        if (is_bool($value)) {
            return $value ? 'true' : 'false';
        }
        if (is_null($value)) {
            return 'null';
        }
        if (!$quote || !is_string($value)) {
            return (string) $value;
        }
        if ($quote === '"') {
            return $quote . static::_dump($value). $quote;
        }
        return $quote . addcslashes($value, $quote) . $quote;
    }
public static function dump($value, $quote = '"')
    {
        if (is_bool($value)) {
            return $value ? 'true' : 'false';
        }
        if (is_null($value)) {
            return 'null';
        }
        if (!$quote || !is_string($value)) {
            return (string) $value;
        }
        if ($quote === '"') {
            return $quote . static::_dump($value). $quote;
        }
        return $quote . addcslashes($value, $quote) . $quote;
    }
public static function dump ( $ value , $ quote = '"' ) { if ( is_bool ( $ value ) ) { return $ value ? 'true' : 'false' ; } if ( is_null ( $ value ) ) { return 'null' ; } if ( ! $ quote || ! is_string ( $ value ) ) { return ( string ) $ value ; } if ( $ quote === '"' ) { return $ quote . static :: _dump ( $ value ) . $ quote ; } return $ quote . addcslashes ( $ value , $ quote ) . $ quote ; }
Dump some scalar data using a string representation

@param mixed $value The scalar data to dump
@param string $quote The quote character to use, default is "

@return string        The dumped string.
Dump some scalar data using a string representation