Parser

Parser

class Parser

Parser parses YAML strings to convert them to PHP arrays.

Constants

TAG_PATTERN
BLOCK_SCALAR_HEADER_PATTERN

Methods

__construct(int $offset, int|null $totalNumberOfLines = null, array $skippedLineNumbers = array())

Constructor.

mixed parse(string $value, int $flags)

Parses a YAML string to a PHP value.

static preg_match($pattern, $subject, $matches = null, $flags, $offset)

A local wrapper for preg_match which will throw a ParseException if there is an internal error in the PCRE engine