RE: [PHP] php-speed
| From: | Brian McGarvie | Date: | Thu, 13 Jun 2002 13:54:15 +0000 |
| Subject: | RE: [PHP] php-speed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101962@lists.php.net to get a copy of this message | ||
the best answer to this is that it's down to persona preferance as well... some people might
find it easier to read/write code that is in a more 'traditional' layout which is where
using " or ' would help. I personally use a mixture of all 3 'methods' of using
php. While in-line
is fastest i sometimes find using lots of <?= ?> all over a pain. So I will drop in and out of
methods
according to how much php code/complexity of code vs ammount of HTML with/without generated content.
> -----Original Message-----
> From: Stuart Dallas [mailto:stuart@sharedserver.net]
> Sent: 13 June 2002 2:44 PM
> To: Niklas Lampén
> Cc: Php-General
> Subject: Re: [PHP] php-speed
>
>
> Thursday, June 13, 2002, 2:09:23 PM, you wrote:
> > I don't think so. The difference is (IMHO + the article
> linked below) if
> > you use
>
> > ...<a href="<?=$Var?>">Foo</a>... (faster)
> > or
> > <? print "...<a href=\"$Var\">Foo</a>..."; ?>
> > (slower)
>
> Actually, Brian is right. PHP parses text contained within "s
> whereas it
> doesn't do so with text contained within 's. However, neither
> will be quicker
> than inline HTML since PHP completely ignores that as
> previously mentioned.
>
> --
> Stuart
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>