class Parser

Parser parses YAML strings to convert them to PHP arrays.

Constants

TAG_PATTERN

BLOCK_SCALAR_HEADER_PATTERN

Methods

__construct()

No description

mixed
parse(string $value, int $flags)

Parses a YAML string to a PHP value.

Details

at line line 36
__construct()

at line line 61
mixed parse(string $value, int $flags)

Parses a YAML string to a PHP value.

Parameters

string $value A YAML string
int $flags A bit field of PARSE_* constants to customize the YAML parser behavior

Return Value

mixed A PHP value

Exceptions

ParseException If the YAML is not valid