public
static
|
parse(
string $value,
bool $exceptionOnInvalidType = false,
bool $objectSupport = false,
bool $objectForMap = false,
array $references = [],
): mixed
Converts a YAML string to a PHP value.
Converts 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()
|
$references |
Mapping of variable names to values
|
Returns
Throws
|
#
|