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 / pravendra
echo is a statement used to print the line.
while print and print_r is a function.
if take the example of array then
we can't print whole array by using echo or print. For this
we have to use the print_r function
| Is This Answer Correct ? | 20 Yes | 6 No |
Post New Answer View All Answers
Can you define an argument as a reference type?
What is data structure in php?
How to declare an array in php?
How to read the entire file into a single string?
Do you know what is use of count() function in php?
Define anonymous classes in php7?
What is the use of header() function in PHP? What the Limitation of HEADER()?
Who is the father of php?
What are html entities?
Differentiate between php5 and php7?
How cookies are transported from servers to browsers?
What is the use of header() function in php?
Is php still used?
How to store the uploaded file to the final location?
How values in arrays are indexed?