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 |
What is php how it works?
Which function gives us the number of affected entries by a query?
Write a program in php to check whether a number is prime or not?
How to assigning a new character in a string?
What is the function file_get_contents() usefull for?
What is strstr php?
What is the string concatenation operator in php?
Are php short tags acceptable to use?
what use of <?php
What is PHP?
What is difference between session_unset and session_destroy?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?