Parser (Component\Yaml)
Symfony\Component\Yaml\Parser
class Parser
Parser parses YAML strings to convert them to PHP arrays.
Constants
BLOCK_SCALAR_HEADER_PATTERN |
Methods
__construct(int $offset) Constructor. | ||
mixed | parse(string $value, bool $exceptionOnInvalidType = false, bool $objectSupport = false, bool $objectForMap = false) Parses a YAML string to a PHP value. |
Details
public __construct(int $offset)
Constructor.
public mixed parse(string $value, bool $exceptionOnInvalidType = false, bool $objectSupport = false, bool $objectForMap = false)
Parses a YAML string to a PHP value.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Yaml/Parser.html