[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/vendor/symfony/yaml/ -> Yaml.php (summary)

(no description)

File Size: 150 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Yaml:: (3 methods):
  parseFile()
  parse()
  dump()


Class: Yaml  - X-Ref

Yaml offers convenience methods to load and dump YAML.

parseFile($filename, $flags = 0)   X-Ref
Parses a YAML file into a PHP value.

Usage:

$array = Yaml::parseFile('config.yml');
print_r($array);

return: mixed The YAML converted to a PHP value
param: string $filename The path to the YAML file to be parsed
param: int    $flags    A bit field of PARSE_* constants to customize the YAML parser behavior

parse($input, $flags = 0)   X-Ref
Parses YAML into a PHP value.

Usage:
<code>
$array = Yaml::parse(file_get_contents('config.yml'));
print_r($array);
</code>

return: mixed The YAML converted to a PHP value
param: string $input A string containing YAML
param: int    $flags A bit field of PARSE_* constants to customize the YAML parser behavior

dump($input, $inline = 2, $indent = 4, $flags = 0)   X-Ref
Dumps a PHP value to a YAML string.

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

return: string A YAML string representing the original PHP value
param: mixed $input  The PHP value
param: int   $inline The level where you switch to inline YAML
param: int   $indent The amount of spaces to use for indentation of nested nodes
param: int   $flags  A bit field of DUMP_* constants to customize the dumped YAML string



Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1