We have Echo we have print in php which we use to display the output to the user
Both Echo and Print does the same work - Displaying the output on the screen
But there are couple of differences between them
Echo
- Output one or more strings
- Allows More parameters works only with the short open tags
- It is not a function
- It takes less memory
Print
- Output only one string
- It allows only one parameter
- Its not a real function but its a language construct
- It take a little more memory than echo