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
How break and continue while loop in php?
Is uploaded file php?
What is the $_ server php_self variable?
what is mean by portal
What are the 5 types of data?
Explain which cryptographic extension provide generation and verification of digital signatures?
What is a simple php method to make a cross domain data request?
What is the use of namespace in php?
What is php full form?
What is difference between explode() or split() in PHP?
What is "echo" in php?
Explain me how to include a file to a php page?
Does PHP 5 support exceptions? State Whether True or False?
What is the difference between Split and Explode in PHP?
What are the options to transfer session ids?