Re: long echo statement performance question
| From: | Frank Stanovcak | Date: | Fri, 06 Feb 2009 17:33:22 +0000 |
| Subject: | Re: long echo statement performance question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287831@lists.php.net to get a copy of this message | ||
"Bruno Fajardo" <bsfajardo@gmail.com> wrote in message
news:eeb6980b0902060915k2b34ec31nc6ad166e2c54474c@mail.gmail.com...
In my opinion, you would achieve better results using a template
engine, like Smarty (http://www.smarty.net/). In addition, your code
would be entirely separated from presentation in a elegant way.
2009/2/6 Frank Stanovcak <blindspotpro@comcast.net>:
> I'm in the process of seperating logic from display in a section of code,
> and wanted to make sure I wasn't treading on a performance landmine here,
> so
> I ask you wizened masters of the dark arts this...
>
> is there a serious performance hit, or reason not to use long, ie more
> than
> 30 - 40 lines, comma conjoined echo statments...
>
> echo 'blah', $var, 'blah', $var2,...ad nauseum
>
> ... to output mixed html and php var values? If so could you refer me to
> a
> work around, or better way?
>
> Frank
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Bruno Fajardo - Desenvolvimento
bruno.fajardo@dinamize.com - www.dinamize.com
Dinamize RS - Porto Alegre-RS - CEP 90420-111
Fones (51) 3027 7158 / 8209 4181 - Fax (51) 3027 7150
I'm going to take a serious look at that for ver 2.0, but unfortunately live
beta 1 rollout is monday, and I'm just cleaning house right now. Thanks for
the advice though!
Frank