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

List types of array are available in php?

557


What is apache and php?

498


Which php framework is best for beginners?

517


What is php in simple words?

527


What is php limit?

524






What is the function in PHP do not return a timestamp?

574


Tell me how to retrieve a cookie value?

539


Is php pass by reference or value?

548


What is composer json?

501


What is variable and data type?

520


What is the use of header() function in php?

555


How to redirect a page in php?

586


What is framework in php for beginners?

538


What is mysqli_real_escape_string?

537


Is false empty php?

557