What is the Diff. Between echo() and Print() in PHP?
Answer Posted / satyajit das
1> print()is am method which returns boolean parameter(s)
either 1 or 0. Where echo() is an object rather statement
which does not have any return parameter in spite of has
its functionality.
2> According to print is structured and faster in sence it
does not return any complex parameter but if the complex
parameter is concerned echo becomes slow. complex parameter
indicates any complex value like 1.3e^2.
3> print supports multiple arguements w.r.t. '.' like echo
e.g.
<?php
$p = "MY ISAM";
$j = 1;
print($p." ".$j);
echo("<br>".$p.$j);
?>
| Is This Answer Correct ? | 20 Yes | 23 No |
Post New Answer View All Answers
What is meant by MIME?
What is super () python?
What is overloading in php?
How can you pass a variable by reference?
What is helper function?
What is split function in php?
What is pdo in php why use?
What are the methods of array in java?
Tell me what is the use of "ksort" in php?
What is the $_ server php_self variable?
What the use of var_dump()?
What is polymorphism?
Does empty check for null?
List some string function name in php?
Write a program in php to find the occurrence of a word in a string?