Yaml::dump()

static string dump(mixed $input, int $inline = 2, int $indent = 4, int $flags)

Dumps a PHP value to a YAML string.

The dump method, when supplied with an array, will do its best to convert the array into friendly YAML.

Parameters

mixed $input The PHP value
int $inline The level where you switch to inline YAML
int $indent The amount of spaces to use for indentation of nested nodes
int $flags A bit field of DUMP_* constants to customize the dumped YAML string

Return Value

string A YAML string representing the original PHP value
doc_Symfony
2016-10-28 06:37:26
Comments
Leave a Comment

Please login to continue.