src/Argument.php
private function tostring($value)
    {
        if (!isset($value)) {
            return 'null';
        }
        if ($value === true) {
            return 'true';
        }
        if ($value === false) {
            return 'false';
        }
        if (is_array($value)) {
            $out = '[';
            $i = 0;
            foreach ($value as $key => $entry) {
                if ($i) {
                    $out .= ', ';
                }
                $out .= $key.' => '.$this->tostring($entry);
                $i++;
            }
            $out .= ']';
            return $out;
        }
    }
private function tostring($value)
    {
        if (!isset($value)) {
            return 'null';
        }
        if ($value === true) {
            return 'true';
        }
        if ($value === false) {
            return 'false';
        }
        if (is_array($value)) {
            $out = '[';
            $i = 0;
            foreach ($value as $key => $entry) {
                if ($i) {
                    $out .= ', ';
                }
                $out .= $key.' => '.$this->tostring($entry);
                $i++;
            }
            $out .= ']';
            return $out;
        }
    }
private function tostring ( $ value ) { if ( ! isset ( $ value ) ) { return 'null' ; } if ( $ value === true ) { return 'true' ; } if ( $ value === false ) { return 'false' ; } if ( is_array ( $ value ) ) { $ out = '[' ; $ i = 0 ; foreach ( $ value as $ key => $ entry ) { if ( $ i ) { $ out .= ', ' ; } $ out .= $ key . ' => ' . $ this -> tostring ( $ entry ) ; $ i ++ ; } $ out .= ']' ; return $ out ; } }
Internal helper method to render a PHP variable as a string.

@param mixed $value The value to render.
@return string An echo'able representation.
Internal helper method to render a PHP variable as a string .