Posted by Janwillem Borleffs on 05/29/06 23:23
Joerg Simon wrote:
> Hi everybody,
>
> Whis is mainly because I am curious ;) :
>
> I just wandered which of the two following things is faster:
>
> $var = 'much text asdlkfasdfaslkdfasl' . "\n";
>
> or
>
> $var = "much text asdlkfasdfaslkdfasl\n";
>
The first one's probably faster, because PHP doesn't have to search the
entire string for parseble content, due to the single quotes.
JW
Navigation:
[Reply to this message]
|