Re: Ever complained about lousy PHP programmers?
| From: | michael kimsal | Date: | Sat, 18 Jan 2003 15:36:02 +0000 |
| Subject: | Re: Ever complained about lousy PHP programmers? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132095@lists.php.net to get a copy of this message | ||
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