[PHP] PHP code optimization

2002-07-09 Thread Peter Thoenen
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 } ? Both do the same thing and are legit but wondering which is better from an optimization standpoint (NOT interested

Re: [PHP] PHP code optimization

2002-07-09 Thread Kevin Stone
. -Kevin - Original Message - From: Peter Thoenen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 1:32 PM Subject: [PHP] PHP code optimization Question on optimizing code for quicker runtimes. Which is quicker (this is on a webpage also..NOT commandline)? ?php

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