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
Which php global variable is used for uploading a file?
What is difference between mysqli and mysql?
What enctype is required for file uploads to work?
Tell us how can we display the output directly to the browser?
What version of php do I have windows?
What are the three parts of an http request?
What is slim framework?
What is a php form?
How many types of session are there?
Does php need a closing tag?
What is the super method?
How can we determine whether a variable is set?
Which is best framework for php?
What are the data types in php?
How can you execute php script from the command line?