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
Explain Whitespace Characters?
What is a php trait?
What is the purpose of basename() function in PHP?
When do sessions end?
Why laravel is the best php framework in 2019?
How to create a session? How to remove data from a session?
What is use of echo in php?
Can we embedded directly PHP code into XHTML document? State Whether True or False?
What difference between require() and require_once()?
Explain setcookie() function in php?
Why super () is used in java?
What is lamp in php?
How to find a substring from a given string in php?
Is age interval or ordinal?
Explain what is the difference between for and foreach?