NYCPHP Meetup

NYPHP.org

[nycphp-talk] testing a theory

tedd tedd at sperling.com
Wed Feb 7 11:05:32 EST 2007


At 6:39 PM -0500 2/6/07, Adrian Noland wrote:
>Hi, I have a quick (and probably silly) question. Is there performance
>difference between the following two snippets. Does it make a
>difference if there are hundreds+ of lines?
>
><?php
>$content = "this is the start of a bunch of lines";
>$content .= "another line";
>$content .= "yet another";
>echo $content;
>?>
>
>vs.
>
><?php
>echo "this is the start of a bunch of lines";
>echo "another line";
>echo "yet another";
>?>

No offense meant, but when I have a question like that, I test it and 
find out. Why ask the list for something you could test yourself?

tedd

-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the talk mailing list