Admin

Published il y a 9 mois,2 jours

Today, i present you a nice symfony object  : the Yaml Parser

 

$file = __DIR__ . '/../data/yaml_fixtures/fixtures.yml';
$parser = new sfYamlParser();
$map = $parser->parse(file_get_contents($test_responses));
 
With this snippet, you get in map an associative array with the yaml datas !
Pretty nice hu ?

Add a comment :

 

Votre email ne sera jamais publié

Doit débuter par http:// ou https://