The Web site of Alex S. Jones, community catalyst, user advocate, Web technologist, barbecue acolyte & information junkie

Print Vs. Echo

Danny ‘dynacker’ Lee provides an interesting experiment, measuring the difference in speed between the two commands for sending data to the client in PHP (Web browser, command line, or a file). Check out Print Vs. Echo. Echo, is much faster than print.

Note that this is not a static page, each time you hit it, the page runs the experiment. Pretty damn cool.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Post Information

This entry is categorized under PHP & MySQL and tagged .

If you would like to follow the discussion on this post, you can follow the comment feed.