Function

yaml_decode

Synopsis

yaml_decode(string): mixed

Area
Runtime\PS\Core\Yaml\yaml_decodeareas

Description

yaml_decode parses the YAML in $text into arrays: a mapping arrives as an array keyed by its field names and a sequence as a list. The keys come back sorted, and invalid input raises an error where php answers null.

Usage

$value = yaml_decode($arguments);
$fn = yaml_decode(...);

See also