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

Is php an api?

532


Which is used to maintain the value of a variable over different pages?

564


When are you supposed to use endif to end the conditional statement?

532


Explain the changes in php versions?

532


What is final class and final method in php?

547






What are the 5 types of variables?

559


What is the use of mysql_fetch_array in php?

505


What is the advantage of runtime polymorphism?

505


Which is faster for or foreach php?

495


What is self in php?

551


Tell me what does the initials of php stand for?

547


What is php and its advantages?

520


What are the benefits of composer?

527


What does $_server means?

519


Can the value of a constant change during the script's execution?

543