public
|
parse(
string $value,
bool $exceptionOnInvalidType = false,
bool $objectSupport = false,
bool $objectForMap = false,
): mixed
Parses a YAML string to a PHP value.
Parses a YAML string to a PHP value.
Parameters
$value |
A YAML string
|
$exceptionOnInvalidType |
True if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
|
$objectSupport |
True if object support is enabled, false otherwise
|
$objectForMap |
True if maps should return a stdClass instead of array()
|
Returns
Throws
|
#
|