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 are the functions to be used to get the image's properties (size, width and height)?
armstrong number by using php while number is given by the keyboard.?
How to retrieve values out of an array?
What is php7?
Tell me how comparison of objects is done in php5?
What is php namespace?
Which php framework is in demand?
WWhat is the functionality of md5 function in PHP?
Explain the advantages of using PHP?
what is this error "Call to unsupported or undefined function mysql_connect();" and when you will get this?
Is php front end?
What is the difference between substr() and strstr()?