<?php
 
 
/* Remeber we use spyc for loading data from yml */
 
include ("spyc.php");
 
 
include ("ymlizer.class.php");
 
 
$array = Spyc::YAMLLoad('test.yml');
 
 
function print_pre($fil)
 
{
 
    echo "<pre>";
 
    print_r($fil);
 
    echo "</pre>";
 
}
 
 
 
$test = new YMLizer($array);
 
 
$a = $test->getSettings();
 
 
print_pre($a);
 
 
echo $a->offsetGET("Index")->offsetGET("njegov")->offsetGET("njegov2")->offsetGET("0");
 
 
?>
 
 |