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

Explain the types of string comparision function in PHP

712


What is composer json?

677


Is gender a dependent variable?

725


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

735


Write down the code for save an uploaded file using php?

639


What is echo in html?

687


Which php framework is best for security?

728


Is string php function?

785


How to replace a substring in a given string in php?

734


How to get length of an array in PHP?

751


How many data types are there in php?

824


Difference between get and post method.

743


What is the use of @ in php?

762


How is it possible to propagate a session id?

709


What are php loops?

709