class Yaml

Class Yaml

Methods

string
dump(mixed $input)

Dump YAML from PHP array statically

array
load(string $input) deprecated

Load YAML into a PHP array statically

array|false|mixed|string
loadCachedYamlFile(string $filename)

Load YAML file and use cached version if possible

false|mixed
loadYamlFile(string $filename)

No description

bool
writeYamlFile(string $filename, mixed $input)

No description

Details

at line 63
string dump(mixed $input)

Dump YAML from PHP array statically

The dump method, when supplied with an array, will do its best to convert the array into friendly YAML.

Parameters

mixed $input

PHP array

Return Value

string

at line 23
array load(string $input) deprecated

deprecated use loadCachedYamlFile() instead

Load YAML into a PHP array statically

Parameters

string $input

Path of YAML file or string containing YAML

Return Value

array

at line 34
array|false|mixed|string loadCachedYamlFile(string $filename)

Load YAML file and use cached version if possible

Parameters

string $filename

path to yml file

Return Value

array|false|mixed|string

at line 76
false|mixed loadYamlFile(string $filename)

No description

Parameters

string $filename

Path to YAML file

Return Value

false|mixed

at line 103
bool writeYamlFile(string $filename, mixed $input)

No description

Parameters

string $filename

Path to YAML file

mixed $input

Return Value

bool