Jump to content

php functions vs performance


minerbog

Recommended Posts

Hi All,

 

Its my first day here so please be gentle!

 

My site is now getting very, shall we say difficult to read! A lot of the code is repeated so I want to put them into reusable functions. My question is though, if I say, have an include called security that has 12 functions in it and in a particular page I only need to use 1 function, does that fact the other 11 are there impact on performance? I.E. are they read even though they are never called?

 

Many Thanks

 

Gavin.

Link to comment
https://forums.phpfreaks.com/topic/191589-php-functions-vs-performance/
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.