How can I define a global function which would be accessible from any page?
In file include.php:
function myGlobalFunction() { // Do something }
Then in every page you want to use it:
include 'include.php'; myGlobalFunction();
1.4m articles
1.4m replys
5 comments
56.9k users