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
How do you sort an array in php?
Is php secure?
Are there regular expressions in php?
Does cors prevent csrf?
What is the use of stripslashes in php?
What is php explain how php works?
Which cryptographic functions in php returns the longest hash value?
what does this symbol mean in php?
Which Scripting Engine PHP uses?
How do you destroy a session?
Is php a backend?
How to increase the execution time of a PHP script?
Can I learn php without knowing c?
Is laravel frontend or backend?
Can you define an array argument as a reference type?