Skip to content

Instantly share code, notes, and snippets.

@carlosdelfino
Forked from paulopatto/teste.php
Created January 7, 2011 23:08
Show Gist options
  • Save carlosdelfino/770272 to your computer and use it in GitHub Desktop.
Save carlosdelfino/770272 to your computer and use it in GitHub Desktop.
<?php
require_once "lib/spyc.php";
$obj = Spyc::YAMLLoad('videos.yml');
//print_r($obj);
foreach($obj as $grupo){
echo "<h1>".$grupo['video']."</h1>";
echo "<h3><strong>Arquivo:</strong>".$grupo['arquivo']."</h2>";
echo "<p>".$grupo['descricao']."</p>";
}
?>
-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