• PHP Video Tutorials

PHP - yaml_parse_file() Function



The yaml_parse_file() file can parse a YAML stream from a file.

Syntax

mixed yaml_parse_file( 
   string $filename [, int $pos = 0 [, int &$ndocs [, array $callbacks = null ]]] 
)

The yaml_parse_file() file can convert all or part of a YAML document stream read from a file to a PHP variable.

The yaml_parse_file() file can return a value encoded in input in appropriate PHP type or false on failure. If pos is -1, an array can be returned with one entry for each document found in a stream.

php_function_reference.htm
Advertisements