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 is a php object?

511


What function should you use to join array elements with a glue string?

556


What is difference between array_merge and array_combine in php?

514


When do you use define() and when do you use const. What are the main differences between those two?

583


What is foreach loop in php?

543






List data types in PHP?

545


What is the difference between php4 and php5?

573


What does addslashes do in php?

546


What is button in html?

549


What is a null coalescing operator in php7?

731


What is the meaning of "enctype= multipart/form-data" ?

533


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

529


Why many companies are switching their current business language to php?

595


How can we get ip address of a client in php?

550


What is htaccess? Why do we use this and where?

511