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 / ramesh
echo is not a function only it is display String Or integer Values
echo $record;
Array
print is a function it display the string and integer values it not applicable for loops and arrays
print($record);
Array
print_r is a return function it used for Strings and integers and as well as array of values and return object values
do u want effective retriview data from arrays use below statement
print_r($record);
Array ( [id] => 0 [date_details] => [password] => dasf [email] => sdfhhh )
echo "<pre>"; print_r($record);echo "</pre>";
Array
(
[id] => 0
[date_details] =>
[password] => dasf
[email] => sdfhhh
)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the current stable version of php? What advance thing in php7?
What is array filter php?
What is strcmp () in php?
What are php functions?
What are the data types in php?
What function do we use to find length of string, and length of array?
What is the special meaning of __sleep and __wakeup?
Can I run php without xampp?
How can you retrieve a cookie value?
Explain how we can retrieve the data in the result set of mysql using php?
Can I learn php without knowing c?
What kind of variable is age?
Which is variable cost?
What is php and its advantages?
What is the main difference between require() and include()?