Location: PHPKode > scripts > Siviglia Templating > siviglia-templates/tests/templates/NewsBox7.html
<?php
   $news=array(
       array("TITLE"=>"First Title","CONTENTS"=>"First Contents"),
       array("TITLE"=>"Second Title","CONTENTS"=>"Second contents"),
       array("TITLE"=>"Third Title","CONTENTS"=>"Third Contents")
       );
?>  
[*NEWSBOX3({"source":"$news","iterator":"&$iterator"})]        
        [_TITLE]Iterating over an array[#]        
        [_NEWS]
            [_TITLE]<?php echo $iterator["TITLE"];?>[#]
            [_CONTENTS]<?php echo $iterator["CONTENTS"];?>[#]
        [#]
[#]
Return current item: Siviglia Templating