What is the Diff. Between echo() and Print() in PHP?
Answer Posted / surendra.kandimalla
Echo:echo as a function we can pass only one argument.But echo as command we can pass any number of arguments.echo will not return anything.
echo("echo as function<br>");
echo"arg1","arg2","arg3","<br>";
Print:we can pass only one argument for print as function or command.print returns boolean value.
print("print function<br>");
$b=print"print command<br>";
echo $b,"<br>";
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the function file_get_contents() usefull for?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
Explain some of the php string functions?
What is difference between core php and framework?
Tell us what is the difference between session_unregister() and session_unset()?
How do you end a session in php?
What is super () python?
List few sensible functions in PHP?
What is polymorphism in php?
How can I load data from a text file into a table?
Which function parses an English textual date or time into Unix timestamp in PHP.
Tell me how can we define a variable accessible in functions of a php script?
How does php isset work?
Which function you can use in php to open a file for reading or writing or for both?
Is php a mvc?