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

What is lamp in php?

549


Where sessions stored in PHP?

546


What is the use of mysql_real_escape_string in php?

465


Which parts of php are case sensitive?

504


Is php a case sensitive language?

627






How do you find the length of a string in php?

518


What are the benefits of using php and mysql?

515


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

1539


Explain the installation of PHP on UNIX systems?

553


What is a php certification?

501


What is the php function that removes the first element of the array and returns it?

519


What are the difference between overloading and overriding in oops?

548


Does php have a future?

520


How long is csrf token?

548


Does wordpress still use php?

538