Optimize file include inside functions in PHP

FQtaina

New Member
I have a function that needs to include a file, however this functions is used in a place from 200 to 300 times, this is obviously causing efficiency issues, is there a way to optimize this inside the function? (i know there are many ways in which i can fix this but it will cause too much impact in the whole application)I will just put a little example, this is not the whole function.\[code\]function getString(arrayName, strValue){ inclue('stringArrays.php'); return $$arrayName[strValue];}\[/code\]I tried using include_once, but that doesn't do the job either.Thanks in advance.
 
Back
Top