static mixed parse(string $input, int $flags)
Parses YAML into a PHP value.
Usage:
$array = Yaml::parse(filegetcontents('config.yml'));
print_r($array);
static mixed parse(string $input, int $flags)
Parses YAML into a PHP value.
Usage:
$array = Yaml::parse(filegetcontents('config.yml'));
print_r($array);
string | $input | A string containing YAML |
int | $flags | A bit field of PARSE_* constants to customize the YAML parser behavior |
mixed | The YAML converted to a PHP value |
ParseException | If the YAML is not valid |
Designed by : w10schools
service@w10schools.com
Please login to continue.