Re: parsing
| From: | Kevin Stone | Date: | Tue, 23 Jul 2002 19:50:43 +0000 |
| Subject: | Re: parsing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109137@lists.php.net to get a copy of this message | ||
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" <eightrack@earthlink.net>
To: "PHPlist" <php-general@lists.php.net>
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
>