YAML
Less than 1 minute
YAML
Methods
__construct
public __construct({Array})
parseFile
Parse a YAML file into an array.
public parseFile({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$filename | string | The filename of the YAML file to parse |
$ | false |
parse
Parse a YAML string into an array.
public parse({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$content | string | The YAML content to parse |
parseSection
Parse a YAML section.
private parseSection({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$iter | array | The iterator |
$parent | array | The parent array |
$level | int | The level of the section |
$indents | array | The indents |
Generated by Hazaar API Doc Generator