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

Answer Posted / ramesh kumar jayaraman

In Php echo is a statement..it doesn't return any
value...And It is faster
because it does not return any value, but print which
always returns 1 and 0.

The print acts like a function and it can be used in complex
expressions.

but echo can not be used in this way.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a php function to convert all null values to blank?

1097


How to reset/destroy a cookie in php?

742


What type of operation is needed when passing values through a form or an url?

760


How can we connect to a mysql database from a php script?

799


What is pdo in php why use?

698


How can I embed a java program in php file and what changes have to be done in php.ini file?

729


Can the value of a constant change during the script's execution?

760


What is an array in php?

835


What is meant by PEAR in PHP?

755


How can you retrieve data from the mysql database using php?

763


What is preg_match?

745


How arrays are used in php?

782


What is session in php w3schools?

800


What are the two main string operators?

826


What is the purpose of the php empty function?

715