Are '...' faster than "..." in normal code? Single Quotes vs. Double Quotes

From: Date: Mon, 04 Dec 2000 22:21:59 +0000
Subject: Are '...' faster than "..." in normal code? Single Quotes vs. Double Quotes
Groups: php.general 
Request: Send a blank email to php-general+get-28651@lists.php.net to get a copy of this message
Heya gang, we all know the standard thing with string, "..." are parsed '...' are not parsed. Now I might be a scrooge for cpu cycles but this got me thinking, if this *always* the case? For example if I declare a function function myFunc($param1 = "default", $param2 = 'default') {...} Does the Zend engine parse $param1 looking to substitute values, and when it looks at $param2, being in 'single quotes' it simply assigns the value. --------------------------------------- So, in a class declaration, what is faster (yes I'm being pedantic, but the cycles add up) var $czHostName = "foohost.com"; var $czClassName = "someClass"; or var $czHostName = 'foohost.com'; var $czClassName = 'someClass'; --------------------------------------- The same goes for array indexing $parameters["HostName"] or $parameters['HostName'] This isn't a big issue, I'm just intrigued? Any help? --------------------------------------- Matthew M. Boulter. myCybrary Development Office. The University of Queensland Library. Brisbane, Australia, 4062. ---------------------------------------

« previous php.general (#28651) next »