What is the Diff. Between echo() and Print() in PHP?

Answer Posted / binoyav

In answer #10 the following section is wrong
"
echo evaluate the string before send the output just like this
$a=10
echo "Value is $a"
output:- Value is 10

print 'Value is $a'
output:- Value is $a "

If we give double quotes instead of single quote this will work.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How cookies are transported from servers to browsers?

747


What is the difference between core php and php?

720


Require_once(), require(), include(). What is difference between them?

746


Which of the delimiter is ASP style?

822


What are the different errors in php?

777


What is isset in php?

741


What is the apache?

712


What is form submission?

754


What is use of count() function in php?

786


What is final class and final method?

827


how to detect a mobile device using php

817


What is the timeout period on session values?

818


How check submit button is clicked in php?

729


How check variable is set or not in php?

660


What is difference between mysqli and mysql?

775