Olinux wrote:
I prefer single quotes on stuff that doesn't need to
be parsed. In most cases this is more efficient,
though probably not noticed except on a large scale.
I also think it makes it easier to include html
strings (because double quotes don't need to be
escaped) and I find it easier to work my code in
Homesite.

echo '<p>'.$something.' '.$something_else.'</p>';
rather than echo "<p>$something $something_else</p>";


Both the zend accelerator (lower price for small businesses now)
and the ioncube system (free) optimize any minor
double-quote performance out after the first run, so it
should be a non-issue for more and more people.  Additionally,
as you mention, it's really only an issue on largescale
system (or systems under heavy load).

It's completely a comfortability issue - I personally
find the double-quoted version easier both to read and
to type.  It's not my favorite use of time to do extra
typing just to try to shave off 2 tenths of a millisecond
for the processor - computers are here to make life
easier (supposedly!)  :0

Michael Kimsal
LogiCreate
http://www.phpappserver.com
734-480-9961


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to