+ 2

what is diffrance between print and echo?

print and echo both are used for display something. is there any diffrence in those two keyword

6th Sep 2016, 5:46 PM
Abdul Samad
Abdul Samad - avatar
2 Respuestas
+ 6
Echo- -No return value -Can take multiple perameters -Marginally faster than print Print- -Has a return value of 1 -Can only take 1 argument -Marginally slower than echo
6th Sep 2016, 5:52 PM
Kevin McMinn
Kevin McMinn - avatar
+ 1
Print can hold 2 arguments (sometime require to display array) where as echo do not hold any argument.
7th Sep 2016, 2:42 PM
Vishal Prajapati