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
What is a php object?
What function should you use to join array elements with a glue string?
What is difference between array_merge and array_combine in php?
When do you use define() and when do you use const. What are the main differences between those two?
What is foreach loop in php?
List data types in PHP?
What is the difference between php4 and php5?
What does addslashes do in php?
What is button in html?
What is a null coalescing operator in php7?
What is the meaning of "enctype= multipart/form-data" ?
What is the difference between $name and $$name?
Why many companies are switching their current business language to php?
How can we get ip address of a client in php?
What is htaccess? Why do we use this and where?