title: Most efficient way to share functions among several php pages
body: <p>I have about 10 dynamic php pages which use about 30 functions. Each function is needed in more than 1 page, and every page needs a different subset of functions.</p>
  
  <p>I've been pondering these options:</p>
  
  <p>1- all functions in a single include file: every page loads unneeded code</p>
  
  <p>2- each function in its own include file: too many server requests when loading each page</p>
  
  <p>3 - single include file with conditionals only declaring functions needed based on REQUEST_URI: additional processing when loading each page</p>
  
  <p>4 - one include file per php page, with copies of functions needed by that page: difficult to maintain</p>
  
  <p>How does people handle this scenario? Thanks!</p>