How to make a function available in all system files? [closed]

2

I would like to have my function run through all files within the system. What they have in common is header.php . I would like the header function to be available in all files that go below it.

header.php
----------

function urlbase(){
    $url = "meusite.com.br";
}

      Corpo com include header e footer
      ---------------------------------
      contato.php | usuarios.php | fornecedores.php | noticias.php


footer.php
  

Question : How to make the function available in all body files?

    
asked by anonymous 06.11.2015 / 16:49

0 answers