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

$a=array("ford","benz","bmw","maruthi");
echo ($a);//output Array

$a=array("ford","benz","bmw","maruthi");
print_r ($a);//output Array ( [0] => ford [1] => benz [2] =>
bmw [3] => maruthi )

$a=array("ford","benz","bmw","maruthi");
print ($a);//output Array

Is This Answer Correct ?    30 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create an array in php?

553


What are some new features introduced in php7?

8376


What are different types of Print Functions available in PHP?

528


When a conditional statement is ended with an endif?

519


Is php a dying language?

537






Why do you need php?

522


write a note on Testing the web site

1416


How to open a file for reading?

543


What is namespace and use in php?

522


What is php beginner?

501


Explain some of the php array functions?

578


What is the method to register a variable into a session?

486


Is php object oriented?

508


How to find datatype of variable in php?

528


Difference between get and post method.

545