Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
Bret Hughes wrote: On Wed, 2005-01-12 at 12:08, Jochem Maas wrote: ... Try this, put your code in a file, say, testparse.php and testparsebracket.php and try something like myseq=`seq 1 1000` time for i in $myseq; do php testparse.php;done time for i in $myseq; do php testparsebracket.php;done of

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Bret Hughes
On Wed, 2005-01-12 at 12:08, Jochem Maas wrote: > Marek Kilimajer wrote: > > Jochem Maas wrote: > > > >> hi guys, > > > > > >> I always use curly braces around vars placed in double quoted strings, > >> I do this for 2 reasons: > >> > >> 1. I believe It helps the engine because the var delimita

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Marek Kilimajer
Jochem Maas wrote: Marek Kilimajer wrote: The difference happens at parse time, so if you want to measure any difference execute php script in a loop, not loop inside php script. DOH! nice one Marek, will make an attempt to 'bash' a script together asap (I'm crap at shell scripting! but the chal

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Marek Kilimajer
Jochem Maas wrote: hi guys, I always use curly braces around vars placed in double quoted strings, I do this for 2 reasons: 1. I believe It helps the engine because the var delimitation is explicit, and this means the interpolation is (should be?) faster. 2. it looks nice (easier to read!) I h

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
Marek Kilimajer wrote: Jochem Maas wrote: hi guys, I always use curly braces around vars placed in double quoted strings, I do this for 2 reasons: 1. I believe It helps the engine because the var delimitation is explicit, and this means the interpolation is (should be?) faster. 2. it looks nice

Re: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
Jay Blanchard wrote: [snip] a, always use them (its faster/better) b, only when absolutely necessary c, go away troll and figure it out for yourself (this one is tempting, n'est pas ;-) d, something I haven't had the presence of mind to think of! [/snip] e. All of the above WTF? :-) - I assume

RE: [PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jay Blanchard
[snip] a, always use them (its faster/better) b, only when absolutely necessary c, go away troll and figure it out for yourself (this one is tempting, n'est pas ;-) d, something I haven't had the presence of mind to think of! [/snip] e. All of the above -- PHP General Mailing List (http://ww

[PHP] use of curly braces with string interpolation.

2005-01-12 Thread Jochem Maas
hi guys, [[ I original posted this to php-internals because I figured that php-general would not know the answer _ it had to do with intended use of functionality (I couldn't find anything on the web about) and I figured that the guys who wrote/write php would be best equipped to answer. well n