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

Explain difference between urlencode and urldecode?

560


How to support multiple-page forms?

567


Difference between get and post method.

545


Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani

1596


What is php session id?

532






What is fetch array in php?

573


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

558


How to copy a file?

563


What is the difference between "echo" and "print" in php?

520


Why do we use php?

538


How a variable is declared in php?

512


What is different between software and app

1229


What are the php functions?

554


Write a program to get lcm of two numbers using php?

506


What is cakephp framework?

532