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 / saurabh kumar

echo is a statement.
while print is a function
we can't print whole array by using echo or print. For this
we have to use the print_r function.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a php array?

496


Explain the importance of the function htmlentities.

543


What is csrf cookie?

489


What is active record in php?

481


How to execute an sql query? How to fetch its result?

578






What is the current php version?

552


Why would we use === instead of ==?

8353


What is mvc php?

522


Explain me is it possible to destroy a cookie?

561


Tell me how would you declare a function that receives one parameter name hello?

535


Can you use php and javascript together?

560


Explain me what is the goto statement useful for?

478


Explain the difference between unlink() and unset()?

539


What is the difference between substr() and strstr()?

785


How can you execute php script from the command line?

547