ValueExporter

class ValueExporter

Methods

string exportValue(mixed $value, int $depth = 1, bool $deep = false)

Converts a PHP value to a string.

Details

string exportValue(mixed $value, int $depth = 1, bool $deep = false)

Converts a PHP value to a string.

Parameters

mixed $value The PHP value
int $depth only for internal usage
bool $deep only for internal usage

Return Value

string The string representation of the given value

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.html