Yaml (Component\Yaml)
Symfony\Component\Yaml\Yaml
class Yaml
Yaml offers convenience methods to load and dump YAML.
Methods
static array | parse(string $input, bool $exceptionOnInvalidType = false, bool $objectSupport = false, bool $objectForMap = false) Parses YAML into a PHP array. | |
static string | dump(array $array, int $inline = 2, int $indent = 4, bool $exceptionOnInvalidType = false, bool $objectSupport = false) Dumps a PHP array to a YAML string. |
Details
static public array parse(string $input, bool $exceptionOnInvalidType = false, bool $objectSupport = false, bool $objectForMap = false)
Parses YAML into a PHP array.
登录查看完整内容