Hey everyone,

I'm an experienced PHP programmer and wanted some opinions from peers -- I am 
sending 
results from a MySQL database as XML data using PHP. I can either build the 
entire XMl 
document in memory using $xml .= "<node>{$data}</node>"; repeatedly or I can do 
echo "<node>{$data}</node>";. The total side of the data may be about 512KB or 
maybe even 
1MB.

Opinions on whether echo or .= will provide better performance?

-Josh



Reply via email to