global array in php - Stack Overflow
i have to function in two different files. one of them should add a new item to an array each time is called and the array should be accessible .what i did for it is : function1(){ global $arr... ... What you did should work....