This question must be very easy for experience PHP programmers but i am completely new to programming and am therefore requesting in this forum to kindly tell me the difference between the two PHP functions Echo and function printf. I have tried to use both of them one by one on a few line PHP code and both of these functions are giving me the same output.
I am unable to understand the difference between the functions and wondering if both of the functions printf and echo are giving me the same output then which of them must be used more often and if there are any benefits of using one over the other. Also i would appreciate if any one can compare if there are any other difference in using echo vs printf function of php.
I am unable to understand the difference between the functions and wondering if both of the functions printf and echo are giving me the same output then which of them must be used more often and if there are any benefits of using one over the other. Also i would appreciate if any one can compare if there are any other difference in using echo vs printf function of php.