Re: [SMARTY] new plugin: mailto
| From: | Monte Ohrt | Date: | Wed, 22 May 2002 15:43:26 +0000 |
| Subject: | Re: [SMARTY] new plugin: mailto | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4355@lists.php.net to get a copy of this message | ||
I like Kelly's suggestion:
if(count($mail_parms))
{
$address .= '?' . implode('&', $mail_parms);
}
Ivo Jansch wrote:
Hi, Alan McFarlane wrote:-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.for ($i = 0, $j = count($mail_params); $i < $j; $i++) {Wouldn't this be even faster? foreach ($mail_params as $param) { } Maybe it's slower, maybe php is optimised to do this very fast.. In any case it looks cleaner. Greetings, Ivo//...}