Suppose i had defined a function which fetch the data from database and display it.
i.e.
show_name();
now i need to use this function in a php page four times.
Now my question is when i call this function four time will it fetches the data from database on every call and then display it ?
if yes will it be better to store the result in a $variable and then use that $variable four time instead of calling a function four time.
Please guide thanks :D