Difference among echo, print and printf.
Answer / amit kumar gaur
echo is the primitive of them and just output the content,
you can pass the multiple parameter.
<? php echo 'Welcome','to','india';?>
print is a construct(parentheses are optional)but it return
true and false,print does not the miultiple parameters.
printf is a function not a construct and allow advantage
formatted output.
echo is faster than others.
| Is This Answer Correct ? | 6 Yes | 1 No |
Does php need to be installed?
How do I find environment variables?
Php program to generate fibonacci series?
List some features of php that are deprecated in php
Actually am working in existing project which is developed in .net, am converting the .net into php code. am facing problem after uploading the .php in server. amgetting the error message like "The page cannot be found" but its working perfectly in local host
Differentiate between require and include?
What is session_start () in php?
Explain me what is sql injection?
How can we set and destroy the cookie in php?
Tell me how can we connect to a mysql database from a php script?
Tools used for drawing er diagrams?
how to install openssl, ISAPI, pdf modules in php 5.2.5 with apache on windows xp.