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 just don't matter.  Larger stretches of text are
easier to just send out as is rather than echo.

--Dan

-- 
               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409

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

Reply via email to