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 |
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
how to upload 100mb file using .htaccess..
Why do we use htaccess
How can you send http header to the client in php?
Why sessions are used in php?
Write a program using while loop?
Why we are using PHP than others for web developing?
Why use php artisan serve?
Is php dying 2018?
Explain what are some new features introduced in php7?
What is meant by variable variables in php?
Which php framework is best?