/framework/experimental/mizithra/examples.php
PHP | 31 lines | 27 code | 4 blank | 0 comment | 5 complexity | 4c2e4f45d15fdb5120c61df058b53d82 MD5 | raw file
1This file is just a list of examples of what we want to implement with zizithra. Later we should be able to move it to the examples directory for use there. 2--------------------------------------- 3<? for($i = 1; $i < 3; $i++): ?> 4 <?/* This next tag should work even if short tags is not on, all tags should be compiled to full "<?php" tags *> */?> 5 <?=$i?><br/> 6<? endfor; ?> 7 8<? $a = 3; ?> 9<? if($a == 3): ?> 10 a = 3<br/> 11<? endif; ?> 12 13<? $array = array(1 => 'one', 2 => 'two', 3 => 'three') ?> 14<? foreach($array as $key => $vaL): ?> 15 <?=$key?> =< <?=$val?><br/> 16<? endforeach; ?> 17--------------------------------------- 18<?for $i = 1; $i < 3; $i++ ?> 19 <?=$i?><br/> 20<?/for?> 21 22<? $a = 3; ?> 23<?if $a == 3 ?> 24 a = 3<br/> 25<?/if?> 26 27<? $array = array(1 => 'one', 2 => 'two', 3 => 'three') ?> 28<?foreach $array as $key => $val ?> 29 <?=$key?> =< <?=$val?><br/> 30<?/foreach?> 31---------------------------------------