Re: Preferred Syntax
| From: | Tedd Sperling | Date: | Thu, 15 Dec 2011 21:46:45 +0000 |
| Subject: | Re: Preferred Syntax | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316033@lists.php.net to get a copy of this message | ||
On Dec 14, 2011, at 12:09 PM, Peter Ford wrote:
>
> With respect to tedd and Al, you've misread the question: the important PHP-related bit is
> about whether to embed variables in double-quoted strings or to concatenate them. These are only two
> of the options, and each has it's pros and cons. There has been (some time ago) plenty of
> discussion on this list about this sort of thing, including (ISTR) a timed test of the performance
> implications of various forms - that only really matters in big loops, of course...
>
> Horses for courses. I use whatever I feel like at the time, and mix various styles, as long as
> it's readable!
>
> Cheers
> Pete
>
I didn't misread the OP's post. Realize that the OP provided two ways of doing the task
and asked which way was best?
I responded with a recommendation to remove all style elements and my recommended solution to his
problem.
He can either consider or not.
Cheers,
tedd
_____________________
tedd@sperling.com
http://sperling.com