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 / mahesh
echo is a statement where print_r,print are the functions
all prints the variable result..
If the variable is an Array, then Print_r will prints the
array in details (Array[0]-> " the array values")...
where as the other two(echo and print) only prints as ARRAY().
| Is This Answer Correct ? | 47 Yes | 8 No |
Post New Answer View All Answers
What is the use of htmlentities in php?
Is key exist in array php?
What is the expansion of LAMP?
What is the most common http method?
Whether it is possible to share a single instance of a memcache between multiple php projects?
What is difference between required and require_once in php?
What is a collection in php?
Tell us what does $_cookie means?
What is new keyword in php?
Write a program to display a table of any given number?
Tell me how to retrieve a cookie value?
What language is similar to php?
What does the unset() function means?
What is a php array?
How to execute an sql query?