>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 } ?>

You will not be able to measure the difference until you have a zillion of
them...

>Both do the same thing and are legit but wondering
>which is better from an optimization standpoint (NOT
>interested in readability or *proper* code here)

Why not?!

It's *FAR* more important than raw performance 90% of the time!

Optimize the code that's slow, don't try to write all code at maximum
performance.

If we really needed all code at maximum performance, we'd all still be
coding in binary.

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to