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 / haranath reddy

Echo is a statement used to diplay the data where as print
and print_r are the functions which can perform
tasks.print_r can perform the rotaions in a loop like for
statement.
Pirnt_r Especially used for structures like arrays and
classes.

Is This Answer Correct ?    13 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I check environment variables?

531


Difference between get and post method.

545


Explain me what are the main error types in php and how do they differ?

544


Php program to generate fibonacci series?

551


Explain about switch statement in PHP?

591






How stop the execution of a php scrip?

529


Is array a key php?

518


Define about declare construct?

605


What is use of preg_replace in php?

523


How to change the principal password?

621


What is the use of "echo" in php?

536


How to redirect a url from http to https in .htaccess?

523


What is different types of visibility?

538


Which methods should be used for sending an email using the variables $to, $subject, and $body?

566


What is csrf validation?

547