What is the difference between Print and Echo




Echo:-
1.    echo is used to display the output. it can be used with parentheses or without parentheses
2.    echo can pass multiple string separated as comma(,) .
3.    echo doesn’t return any value, it is faster than print

Print:-
1.    Print is used to display the output. it can be used with parentheses print( ) or without parentheses.
2.    We can’t pass multiple argument with print.
3.    It always return 1, it is slower than echo 
Previous
Next Post »
Thanks for your comment