Re: ' VS "

From: Date: Tue, 30 Jan 2001 01:54:17 +0000
Subject: Re: ' VS "
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37210@lists.php.net to get a copy of this message
Hello Jonathan, Not sure on the exact numbers but consider : print "hello, this has one $variable in it yet all is interpreted"; print 'hello, Concatenating is a ' . $another . ' way!'; not sure the exact performance increases but if done a million times it should be noticable. i happen to be mildy anal on this and even seeing stuff like this : $var = "some words"; bothers me. some good basic information on this can be found here : http://www.zend.com/zend/tut/using-strings.php http://www.php.net/manual/en/language.types.string.php of course this all is preference and depends on the situation as doing this : $var = 'a ' . $b . ' c ' . $d . ' e ' . $f . ' g'; is downright silly. philip On Mon, 29 Jan 2001, Jonathan Sharp wrote: > I read somewhere that when PHP encounters a single quote ' it doesn't parse > the contents for any variables or such...but if it encounters the double > quote " it does. How much of a performance increase (very very very very > small I'd imagine) would this provide? Any thoughts on coding style? > > -Jonathan Sharp > > Director of Technology - Imprev Inc. > Renwick Development Group - Flyerware > http://www.flyerware.com/ > Phone: (425)688-9200 > Cell: (425)766-1398 > EPage: 4257661398@page.nextel.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#37210) next »