YAML
Less than 1 minute
YAML
Methods
__construct
public __construct(): void
parseFile
Parse a YAML file into an array.
public parseFile(string $filename, false $): void
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(string $content): void
Parameters
Parameter | Type | Description |
---|---|---|
$content | string | The YAML content to parse |
parseSection
Parse a YAML section.
private parseSection(array $iter, array $parent, int $level = 0, array $indents = []): void
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