[Haskell-cafe] How to solve this problem?It's quite easy in PHP.
keepbal
keepbal at gmail.com
Tue Feb 13 20:30:05 EST 2007
For example,
-----------------------------------
<?php
//test.php
require ("tiny.php");//Tiny is a small template engine.
$tn=new Tiny();
$arr=new Array();
$arr['a']='1';
$arr['b']='2';
$arr['c']='3';
$tn->set('arr',$arr);
$tn->show('_test.php');
?>
-----------------------------------
<?php require('_header.php');?>
<?php
foreach($arr as $key => $val){
echo "$key = $val <br>";
}
?>
<?php require('_footer.php');?>
-----------------------------------
a = 1
b = 2
c = 3
-----------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070214/4994fd15/attachment.htm
More information about the Haskell-Cafe
mailing list