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 / pravendra

echo is a statement used to print the line.
while print and print_r is a function.
if take the example of array then
we can't print whole array by using echo or print. For this
we have to use the print_r function

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of php variables?

535


How to include a file code in different files in php?

510


Which escape sequences can be used in single quoted strings in php?

521


Is array function in php?

528


What are some of the advanced features of php?

500






What is alias in php?

548


Is php better than java?

539


Where is php code written?

507


Why should I store logs in a database rather than a file?

532


Can we run php in apache tomcat?

514


How variables are passed through arguments?

554


What is session_register()?

556


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

554


Tell me what is the main difference between php 4 and php 5?

529


What is a helper function?

537