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

echo is a statement where print_r,print are the functions
all prints the variable result..
If the variable is an Array, then Print_r will prints the
array in details (Array[0]-> " the array values")...
where as the other two(echo and print) only prints as ARRAY().

Is This Answer Correct ?    47 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start a php session?

538


How long should a session last?

508


What is the difference between myisam and innodb?

508


What is the difference between apache vs niginx?

609


What are the design patterns in php?

517






Why is php used?

563


Hello Friends,I am seeking for a job in php having 9 months. exp.Please suggest any company openings.

1709


What is escaping to php?

542


What is cookie and why do we use it?

530


How many types of arrays are there in php?

537


Write the statements that are used to connect php with mysql

509


What is meant by pdo in php?

552


What is the difference between overloading and overriding in php?

541


What is whitespace in html?

525


Tell me how is the ternary conditional operator used in php?

571