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
How a constant is defined in a php script?
How do you use end in python?
What is the difference between == and === in php?
How is csrf token generated?
What does php do?
What is data structure in php?
Explain php split() function.
What is a static method php?
What are php filters?
Why php is sometimes called as embedded scripting language?
How to repeat a string to a specific number of times in php?
What are the differences between require and include?
Why do you need php?
Which methods should be used for sending an email using the variables $to, $subject, and $body?
How to run a php script?