Yaml

Yaml

class Yaml

Yaml offers convenience methods to load and dump YAML.

Constants

DUMP_OBJECT
PARSE_EXCEPTION_ON_INVALID_TYPE
PARSE_OBJECT
PARSE_OBJECT_FOR_MAP
DUMP_EXCEPTION_ON_INVALID_TYPE
PARSE_DATETIME
DUMP_OBJECT_AS_MAP
DUMP_MULTI_LINE_LITERAL_BLOCK
PARSE_CONSTANT

Methods

static mixed parse(string $input, int $flags)

Parses YAML into a PHP value.

登录查看完整内容