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 use of mvc in php?
How to create and destroy cookies in php?
What is the use of post in php?
Are php short tags acceptable to use?
What is form submission?
How to copy a file?
Is php fully object oriented?
What is mean tnq
What is php and its features?
What is x+ mode in fopen() used for?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
How I can control asset documents without GR/IR?
Tell us what does $_cookie means?
What is PHP? Who is the father or inventor of PHP?
What is the default session time in php?