View Single Post
Old 02-03-2009, 04:34 AM   #2 (permalink)
Krik
The Contributor
 
Join Date: Feb 2009
Posts: 65
Thanks: 0
Krik is on a distinguished road
Default

Go with single quote better performance and when you have to echo out HTML you can keep your double quotes for your HTML.

PHP Code:
echo '<span id="myspan">' $mytext '</span>'
Also a note on the example code you game that last echo

PHP Code:
echo "second name is $secondName."
That "." may get in trouble. Better to

PHP Code:
echo 'second name is' $secondName '.'
Krik is offline  
Reply With Quote
The Following User Says Thank You to Krik For This Useful Post:
planepixel (02-03-2009)