Parser

Parser

class Parser

Parser parses YAML strings to convert them to PHP arrays.

Constants

BLOCK_SCALAR_HEADER_PATTERN
FOLDED_SCALAR_PATTERN

Methods

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

Constructor.

mixed parse(string $value, bool $exceptionOnInvalidType = false, bool $objectSupport = false, bool $objectForMap = false)

Parses a YAML string to a PHP value.

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

A local wrapper for preg_ma