PHP basic function call query -
suppose had defined function fetch data database , display it.
i.e.
show_name();
now need use function in php page 4 times.
now question when call function 4 time fetches data database on every call , display ?
if yes better store result in $variable , use $variable 4 time instead of calling function 4 time.
please guide :d
i'll cache results of function consistent during page processing. when it's intended work values can changed during page proccesing should data on , on again. take consideration - @ least mysql (if it's case) there query cache can you.
Comments
Post a Comment