I need an global array in php.
Here is the example:
global $array;
$array[0] = test;
if (something) function f1() else function f2();
function f1()
{
$array[0] = $array[0]." and test1";
}
function f2()
{
$array[0] = $array[0]." and test2";
}
But the problem is that the array is not affected as global but as local.
Do you have an idea why ?
Thank you.
f1()asfunction f1(&$array) { ... }?