02-03-2009, 03:29 AM
|
#1 (permalink)
|
|
The Contributor
Join Date: Feb 2009
Posts: 28
Thanks: 10
|
single quotes or double quotes in php
Hi
i am confused about which quotes to use.
PHP Code:
$firstName = "first name"; $secondName = 'second name';
echo 'first name is ' . $firstName . '. it is good name '; echo "second name is $secondName.";
which approach is good. I read that single quotes give better performance.
which one you recommend?
thanks
Last edited by planepixel : 02-03-2009 at 03:30 AM.
Reason: added one more line.
|
|
|
|