I just benched it.  If there is a difference in performance then it is too
small to detect with microseconds.  I'd say there's no need to parse the
vars by hand unless the syntax requires it.
-Kevin

----- Original Message -----
From: "Dave at Sinewaves.net" <[EMAIL PROTECTED]>
To: "PHPlist" <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 1:01 PM
Subject: [PHP] parsing


> Okay,
>
> I want to know if anybody has a clue which is more efficient,
> processorwise/parsingwise:
>
> this:
> ------
> echo
>
"<table><tr><td><b>".$somevar."</b><br>".$somevardesc."</td></tr></table>";
>
> or this:
> ------
> echo
"<table><tr><td><b>{$somevar}</b><br>{$somevardesc}</td></tr></table>";
>
>
> I almost always use the first method (just seems more readable to me), but
> with all of the discussion popping up about curly brackets, i was
wondering
> if it really makes a difference?  Any vets out there care to put in their
> $0.02?
>
> Dave Tichy
> http://sinewaves.net/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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

Reply via email to