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 http php?
How can you encrypt password using php?
Is php easy language to learn?
What is the meaning of a persistent cookie?
What is isset php?
What is the difference between characters 34 and x34?
What is the meaning of die in php?
What is the method to execute a php script from the command line?
What is $_ files in php?
Tell me what is the definition of a session?
Is not null mysql?
What are variables in research examples?
Tell me how would you declare a function that receives one parameter name hello?
What is list in PHP?
What is a namespace in php?