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
.
-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
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
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
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
5 matches
Mail list logo