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


Please Help Members By Posting Answers For Below Questions

What is http php?

498


How can you encrypt password using php?

517


Is php easy language to learn?

575


What is the meaning of a persistent cookie?

561


What is isset php?

521






What is the difference between characters 34 and x34?

551


What is the meaning of die in php?

527


What is the method to execute a php script from the command line?

556


What is $_ files in php?

561


Tell me what is the definition of a session?

553


Is not null mysql?

545


What are variables in research examples?

564


Tell me how would you declare a function that receives one parameter name hello?

535


What is list in PHP?

648


What is a namespace in php?

475