Re: long echo statement performance question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Bruno Fajardo" <bsfajardo@xxxxxxxxx> wrote in message 
news:eeb6980b0902060915k2b34ec31nc6ad166e2c54474c@xxxxxxxxxxxxxxxxx
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@xxxxxxxxxxx>:
> 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@xxxxxxxxxxxx - 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 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux