In the scope of my project I use include("funcoes.php")
, inside this file has all the functions that I use in different parts of the project, I do not use all the functions at all time.
Then a question!
Pro system would be more advantageous, with respect to performance, use only this include and leave all functions there, or make multiple files, where each has its function determined, and according to the need to use the function use include("nome.funcao.php")
, or the gain would not be so advantageous, so it would be easier to keep a single file and centralize everything in one scope!
My question is the following.
In this file I have about 30 functions, simple functions to the most complex ones, except that I do not use the 30 all the time, and the include("funcoes.php")
file is included at the top of all the pages, so assuming I use 5 functions, the other 25 were loaded "atoa".