What is the difference between echo and print statement?

Answer Posted / ashu_deepu

i want to add one more thing to what roshan have said.

echo does not return anything.
but print return either true or false.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is return in php function?

502


What is the difference between overloading and overriding in php?

547


What is the function of trim?

505


What is alias in php?

555


Does browser understand php?

492






What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

537


How to swap two variables without using 3rd temp variable.

497


Is laravel an oop?

513


What function do we use to find length of string, and length of array?

533


What is properties of class?

593


What is the use of htmlspecialchars in php?

526


How to update memcached when you make changes to php?

545


What is lamp in php?

544


How can you encrypt password using php?

519


can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????

1327