NYCPHP Meetup

NYPHP.org

[nycphp-talk] Variables syntax

Joseph Crawford codebowl at gmail.com
Fri Oct 28 16:14:17 EDT 2005


It's all based on your coding preference.

Version A works because of the {} it evaluates the variable, however version
A would work even without the {}

The reason being is because when using double quotes variables are evaluated
before being printed.

Version C is the same type i use because from my understanding using double
quotes is bad because it takes longer processing to evaluate the variables
when they are injected into a string in that manner, maybe i am wrong and
just typing more than i have to.

It all boils down to your coding style, preference.

--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20051028/ef981e17/attachment.html>


More information about the talk mailing list