Skip to content

Instantly share code, notes, and snippets.

@paulopatto
Created January 5, 2011 13:53
Show Gist options
  • Save paulopatto/766333 to your computer and use it in GitHub Desktop.
Save paulopatto/766333 to your computer and use it in GitHub Desktop.
Arquivo para fazer a leitura do yaml com spyc.php
<?php
require_once "lib/spyc.php";
$obj = Spyc::YAMLLoad('videos.yml');
//print_r($obj);
foreach($obj as $x => $y){
echo "<strong>$obj[$x]</strong>$y<br/>";
}
?>
-video: aula1
arquivo: aula1.flv
descricao: "Aula introcutória"
-video: aula2
arquivo: aula2.flv
descricao: "Aprendendo a mexer no ambiente"
-video: aula3
arquivo: aula3.flv
descricao: "Usando a acessibilidade"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment