1.What are the difference between echo , print , print_r ?
else this 3 can we show output to a client in some other
way?

Answer Posted / dheeraj

echo is not a function which outputs one or more strings but
it cannot display the array contents, and print_r() is a
function which Prints human-readable information about a
variable

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main error types in php and how do they differ?

832


What are helpers in php?

472


What is the difference between $name and $$name?

525


What is an object in php?

551


Tell me how to execute an sql query? How to fetch its result?

497






Which software is used to run php programs?

522


Tell us how to create an array of a group of items inside an html form?

566


What is polymorphism in php?

509


How to create a directory?

617


How can you compare objects in php?

507


What is member variable?

556


Does https prevent csrf?

520


What is the difference between exception::getmessage and exception::getline?

535


Tell me what is the use of "ksort" in php?

556


Can you explain, when to use if-else if-else over switch statements?

536