Both print and echo functions in php are same.
But echo and print differs in a certain way.
How it differs?
$a=print "No problem";
Tis statement will assign the string to the variable a
Whereas incase of echo.
$a=echo "No Problem";
This statement will not assign the string to the variable a.
This is one difference i found out.
Another difference i have found in the internet is
echo executes more faster than print.