src/Utility/VarPrinter.php
protected static function readArray(array $array): string
    {
        $data = [];

        foreach ($array as $key => $value) {
            $data[] = sprintf('%s => %s', $key, static::toString($value));
        }

        return sprintf('Array(%s)', implode(', ', $data));
    }
protected static function readArray(array $array): string
    {
        $data = [];

        foreach ($array as $key => $value) {
            $data[] = sprintf('%s => %s', $key, static::toString($value));
        }

        return sprintf('Array(%s)', implode(', ', $data));
    }
protected static function readArray ( array $ array ) : string { $ data = [ ] ; foreach ( $ array as $ key => $ value ) { $ data [ ] = sprintf ( '%s => %s' , $ key , static :: toString ( $ value ) ) ; } return sprintf ( 'Array(%s)' , implode ( ', ' , $ data ) ) ; }
Reads a string representation from an array

@param array $array The array

@return string
Reads a string representation from an array