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: [EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to