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 do you check is php not empty?

546


What is fetch array in php?

573


Tell me how stop the execution of a php scrip?

524


How to create an array of a group of items inside an html form?

567


What is the use of print_r function in php?

511






What is a composer in PHP?

539


What does php exit do?

529


Which function would you use to merge two arrays in php?

568


Tell me how can we define a variable accessible in functions of a php script?

522


What is prepare in php?

517


How to know user has read the email-php?

493


Why do we use javascript in php?

522


What is variable give example?

551


What is the method to execute a php script from the command line?

552


How to get a total number of elements used in the array?

504