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

Answer Posted / sreedevi

print is a construct but it returns True on success
outputr False if it was unable to print the output string
echo is faster comparing with print .
print doesnot takes multiple parameters

Is This Answer Correct ?    31 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is x+ mode in fopen() used for?

768


What is cakephp framework?

764


How to get the value of current session id?

725


Tell me can you extend a final defined class?

734


How do you remove whitespace from the beginning and end of a $string variable?

709


What is env in laravel?

739


Explain converting an object?

811


How would you determine the size of a file in php?

794


Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?

770


How to get the number of characters in a string?

798


Which will start a session?

764


How to remove leading and trailing spaces from user input values in php?

765


Why do we use polymorphism in php?

767


Is laravel an oop?

701


Which is faster for or foreach?

720