I want to create an array which is in my function.php code definded so I do not have to transfer the array through my hole code. But it won't work...
This is an example of my function.php:
<?php define("titleArray", array()); function foo(){ echo $this->titleArray; } function boo(){ array_push($this->titleArray, "Hello"); } But it doesn't work... How can I fix that so that every function has access to the array?
Greetings