Re: HTML_Select
| From: | Alister | Date: | Sun, 13 Oct 2002 14:13:13 +0000 |
| Subject: | Re: HTML_Select | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10036@lists.php.net to get a copy of this message | ||
On Sun, 13 Oct 2002 14:14:42 +0100
richard@phpguru.org (Richard Heyes) wrote:
> +-Select
> +-Country.php
> +-USStates.php
> +-UKCounties.php
> Some sample code for the country script:
> ...
> return sprintf('<select name="%s">%s</select>', $name,
> implode("\r\n", $options));
> Thoughts ?
Simple, regularly used. Why not.
But I'd avoid the overhead of a sprintf when a very simple concatenation isn't any more
complicated and will save a little time for almost no effort.
Alister