Re: [PHP4BETA] Interpreter Question
| From: | Andi Gutmans | Date: | Wed, 02 Feb 2000 18:35:08 +0000 |
| Subject: | Re: [PHP4BETA] Interpreter Question | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9690@lists.php.net to get a copy of this message | ||
There's no real difference but I suggest going with the first as it's more
readable.
Andi
On Wed, 2 Feb 2000, Alex Law wrote:
>
> Which is more efficient (less CPU cycles, etc):
>
> a) <html>
> <body>
> Some HTML stuff
> <?php
> $x = 2;
> $x++
> echo("$x");
> ?>
> </body>
> </html>
>
> OR
>
> b) <?php
> echo("<html>
> <body>
> Some HTML stuff");
> $x = 2;
> $x++;
> echo("$x");
> echo(" </body>
> </html>");
> ?>
>
>
>
>
>