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 / muhammad babar bhatti

echo is a command for display a string or statement
print is a function for display a string or statement, but
it returns true/false also and print_r is also a function
that use to display an array data which we can not do
through the print function or echo statement.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Whitespace Characters?

581


What is a php trait?

493


What is the purpose of basename() function in PHP?

602


When do sessions end?

546


Why laravel is the best php framework in 2019?

517






How to create a session? How to remove data from a session?

524


What is use of echo in php?

482


Can we embedded directly PHP code into XHTML document? State Whether True or False?

1262


What difference between require() and require_once()?

552


Explain setcookie() function in php?

561


Why super () is used in java?

528


What is lamp in php?

541


How to find a substring from a given string in php?

505


Is age interval or ordinal?

522


Explain what is the difference between for and foreach?

535