Forum Moderators: coopster

Message Too Old, No Replies

What is faster

Optimization

         

rokec

11:46 am on Dec 28, 2006 (gmt 0)

10+ Year Member



What is faster?


<php if ($x==1) {echo("<div class=\"new\">lol</div>");}?>

======== or ==========

<php if ($x==1) {?> <div class="new">lol</div> <?php }?>

Thanks for any help!

jatar_k

12:59 pm on Dec 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think the difference will be minimal

you could look at this thread
Benchmarking PHP text output [webmasterworld.com]