02-03-2009, 04:34 AM
|
#2 (permalink)
|
|
The Contributor
Join Date: Feb 2009
Posts: 65
Thanks: 0
|
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 . '.';
|
|
|
|