About
php knowns two functions that sends characters to the output device which is:
- the standard stream for a console / cli application
- the body of an http request for a web server
Functions
The major differences between print and echo is that echo:
- accepts multiple arguments
- and doesn't have a return value.
Capture
You can capture the output with the output buffer mechanism.