0

What's the difference between "return" and "echo"

I'm little bit confused when to use "return" and "echo". What's the difference between "return" and "echo" when used in the function? thanks ahead!

16th Sep 2016, 6:24 AM
michael angelo
michael angelo - avatar
2 odpowiedzi
+ 2
Basically you’ll want to use echo whenever you want to output something to the browser, and use return when you want to end the script or function and pass on data to another part of your script. -googled
16th Sep 2016, 6:47 AM
michael angelo
michael angelo - avatar
0
echo nd return are different
16th Sep 2016, 5:40 PM
Nishan
Nishan - avatar