Symfony\Component\Yaml\Inline::parse
Converts a YAML string to a PHP array.
Signature
public function parse(string
$value,
[Boolean
$exceptionOnInvalidType = false,
[Boolean
$objectSupport = false]] )
Parameters
$value
—
string
- A YAML string
$exceptionOnInvalidType
—
object
- true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
$objectSupport
—
object
- true if object support is enabled, false otherwise
Returns
- array
- A PHP array representing the YAML string
Errors/Exceptions
-
ParseException