Re: cgi.php
- From: "ZeldorBlat" <zeldorblat@xxxxxxxxx>
- Date: 14 Aug 2006 11:25:37 -0700
Sandy.Pittendrigh@xxxxxxxxx wrote:
Lincoln Stein's (brother of Franken?) cgi.pm is a great tool for perl
programmers--providing a high-level API for lots of common, repeated
many times html constructs.
Is there a good php analog out there?
Wouldn't it be nice to able to say:
echo table(tr(td("somet text")));
Maybe there is such a thing, and I just don't know about it.
Sure:
function td($str) {
return "<td>$str</td>";
}
function tr($str) {
return "<tr>$str</tr>";
}
function table($str) {
return "<table>$str</table>";
}
echo table(tr(td("some text")));
.
- Follow-Ups:
- Re: cgi.php
- From: Sandy . Pittendrigh
- Re: cgi.php
- References:
- cgi.php
- From: Sandy . Pittendrigh
- cgi.php
- Prev by Date: Re: need a help in htaccess - please help
- Next by Date: Re: cgi.php
- Previous by thread: cgi.php
- Next by thread: Re: cgi.php
- Index(es):
Relevant Pages
|