Jump to content

Storing functions in seperate files


sorenchr

Recommended Posts

Hi,

 

Suppose i have 3 php files in which a function called getUserlist(similar in all) gets used. Would it do any good, besides space preserving, to store this function in a php file for itself, and then call it in the 3 files? Im thinking about memory usage and such.

 

Best regards

Soren

Link to comment
https://forums.phpfreaks.com/topic/105125-storing-functions-in-seperate-files/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.