Jump to content

print or echo ?


TEENFRONT

Recommended Posts

echo is faster.

Echo simply outputs  whatever into the screen - without doing much.

 

Print is a little slower (in the vast majority of cases you won't notice it) but the statement is evaluated before being sent to the screen, hence the slight delay.

 

Other than that, they work almost exactly the same, and 99.9% of the time can be used interchangeably.

Link to comment
https://forums.phpfreaks.com/topic/52349-print-or-echo/#findComment-258342
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.