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

echo is not a function, but a statement which outputs one or
more strings, it cannot display the array contents where as
the print() and print_r() are functions. print() can even
display the array contents as an array . print_r() Prints
human-readable information about a
variable

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find environment variables?

510


What is composer used for?

514


Tell me how can we change the maximum size of the files to be uploaded?

549


What backslash character will match whitespace?

566


How to increase the execution time of a PHP script?

529






Which function(s) in PHP computes the difference of arrays?

580


What is the mysql injection?

553


What is php dependency injection?

526


Tell me how can we pass the variable through the navigation between the pages?

527


Tell me how to initiate a session in php?

549


Are objects passed by value or by reference?

552


What are the encryption functions in php?

569


Which function is used to strip whitespace?

444


Is echo a function in php?

514


How do I make a reset button in html?

517