+ 1

What is the differnce between echo and print in php?

Are both same? since both are giving the same output?

26th Jun 2016, 2:27 PM
Ayush Raj
Ayush Raj - avatar
1 Resposta
+ 3
1.Echo is generally slower than print 2. Echo doesn't return any value. Print returns 1 if succesful 3. In echo you can pass multiple arguments but print allows only 1 argument
1st Jul 2016, 5:38 AM
Midhun Mathew