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 / ajay
echo is a statement where print_r,print are the functions
which is prints all 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 ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to get length of an array in PHP?
What does $_files means?
How can MYSQL functions be available with PHP?
How to set cookies in PHP?
What is difference between base_url and site_url?
How to list all values of submitted fields?
Define anonymous classes in php7?
How to replace a substring in a given string in php?
What does echo mean in php?
What is the difference between characters and #?
How to read the entire file into a single string?
Should I learn php before wordpress?
What are the different types of php variables?
Explain the difference between require() and require_once()?
Why do we use namespace in php?