name: John Doe age: 35 address: city: New York state: NY
use Symfony\Component\Yaml\Yaml; $data = Yaml::parse(file_get_contents('data.yml')); print_r($data);
Array ( [name] => John Doe [age] => 35 [address] => Array ( [city] => New York [state] => NY ) )This package is useful for parsing configuration files, generating test data, or converting data between different formats.