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 Mcrypt used for?
How many columns can be added in a table in mysql?
Describe session in php.
What is the difference between php and cakephp?
Why is php so popular?
How does the identity operator ===compare two values in PHP?
How does php work?
How to remove the new line character from the end of a text line?
What is php trait?
Is php fully object oriented?
What is an example of a variable?
What is the difference between a session and cookies?
What is difference between variable declaration and variable definition?
How to get complete current page url in php?
What is chrome logger?