Difference between echo and print in PHP
- PHP echo and print both are PHP Statement.
- Both are used to display the output in PHP.
PHP echo statement
- echo is a statement i.e used to display the output. it can be used with parentheses echo or without parentheses echo.
- echo can pass multiple string separated as ( , )
- echo can output one or more string.
- echo doesn’t return any value
- echo is faster then print
- We can use ‘echo’ to output strings or variables.
For Example:

output:

For Example (multiple argument)
output:
PHP print statement:
- Print is also a statement i.e used to display the output. it can be used with parentheses print( ) or without parentheses print.
- using print can doesn’t pass multiple argument.
- print always return 1.
- it is slower than echo.
- print can only output one string.