I cant decide if it is appropriate to use user defined functions for every single action in a page..or it somehow may slow the work? I can alternatively make different php files instead of functions,,and they will do the same thing depending on values of some variables, but i would like to do it the right way. Maybe making functions is better? how you think?
kracko
0
Light Poster
Recommended Answers
Jump to PostIf it is simpler (less code) then it is probably better. If you need to do the same thing multiple time using different parameters then a function would seem to be the way to go. Unless there is a lot of complex / extra code in the function to make …
All 4 Replies
chrishea
182
Nearly a Posting Virtuoso
kracko
0
Light Poster
Zagga
kracko
commented:
Excellent!
+1
kracko
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.