I'm not sure about it but it is it possible to first intialize all functions and then use them wherever I want? I'll give you an example to understand what I really mean
e.g.
index.php
<?php
require_once('error_handler.php');
require_once('config.php');
require_once('common.php');
error_handler.php
function error_handler.php
{
error_and_exit();
...
}
common.php
...
function error_and_exit()
{
...
}
As you can see common.php is loaded after the error_handler.php even though error_handler.php is using a function from common.php. Is this possible to do? It would be much easier to get a nice structure into my project I'm building.