Re: [PHP] PHP code optimization

2002-07-09 Thread Kevin Stone
I'm just guessing but I would think there would be no difference. The only way I think there would be a differnce is if you did many many echo statements as opposed to one echo or one ?output block? becuase it would have to parse that many more instances of the function. Again.. just a guess.

Re: [PHP] PHP code optimization

2002-07-09 Thread Analysis Solutions
On Tue, Jul 09, 2002 at 12:32:59PM -0700, Peter Thoenen wrote: Which is quicker (this is on a webpage also..NOT commandline)? ?php if ($a){ echo 'abc'; } ? OR ?php if ($a) { ? abc ?php } ? The difference is very marginal. Write whichever makes more sense in the context. Short tidbits

Re: [PHP] PHP code optimization

2002-07-09 Thread Chris Shiflett
Peter Thoenen wrote: Question on optimizing code for quicker runtimes. Which is quicker (this is on a webpage also..NOT commandline)? ?php if ($a){ echo 'abc'; } ? OR ?php if ($a) { ? abc ?php } ? Because the difference is going to be undetectable, this would probably be a question that

Re: [PHP] PHP code optimization

2002-07-09 Thread Nick Oostveen
I could be wrong, but I seem to remember reading somewhere that using ? text ? is actually just shorthand for echo text ; as far as the php engine itself is concerned. Again I'm not positive, but if this is the case it would coincide with the comment made earlier that they are in fact the