title: php function calls structure
body: <p>I have a problem with my current function call structure. </p>
  
  <p>The structure is like this:
  one file called "index.php" and another file call "function.php"</p>
  
  <p>Inside function.php is just function after functions</p>
  
  <p>function.php </p>
  
  <pre><code>&lt;?php 
  include 'settings.php';
  date_default_timezone_set('Australia/Brisbane');
  
  function one{
  };
  
  function two{
  }; 
  </code></pre>
  
  <p>Index.php is just calling the functions from function.php file</p>
  
  <p>Index.php</p>
  
  <pre><code>&lt;?php
  include 'include/functions.php';
  $name = one():
  ?&gt;
  </code></pre>
  
  <p>The advantage of this structure is when I saw the function has an error on index.php, I can just crt-f(find) in function.php and debug the function easily. </p>
  
  <p>The other way around is cause me problem. I went through the function.php and saw some functions kinda doing the same things. I want to delete it but I don't know where is the function call form which pages. I have hundreds page on this website. </p>
  
  <p>I want to make the code more tighter but I scare any change in function.php would break the website. </p>
  
  <p>Yes, I can test the website after every change in function.php but to test the whole website for one function to be delete. It is time consuming. That's assume I test it correctly.</p>
  
  <p>How would you guys handle this situation?</p>
  
  <p>Many thx in advance ;)   </p>