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

What is multidimensional array in php?

547


Is php an api?

535


How long should a session last?

514


What are super global variables in php?

527


What are soundex() and metaphone() functions in php?

484






What is the actually used php version?

532


What happens when submit button is clicked?

525


How to merge values of two arrays into a single array?

487


How to reset/destroy a cookie?

580


What is the meaning of a persistent cookie?

561


What is an example of a variable?

548


How to create database connection and query in php?

576


/temp is a type of filesystem directory. State Whether True or False?

592


How big is varchar max?

593


How to create a mysql connection?

541