Echilon Posted February 24, 2007 Share Posted February 24, 2007 I have several hundred constants which define strings used to translate my PHP script into different languages. I'm wondering which would be the best way to include them: define them all or split them into a function, which accepts a parameter. On every page, pass a parameter to the function which will load just the constants needed for that page. Would the overhead to store and call the function actually end up making the script slower? Which would be quicker/require less resources? Link to comment https://forums.phpfreaks.com/topic/39925-constants/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.