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 $array;
$array[] = 'hi';
}
ama sadece ben bu fonksiyonu 4 kez çağrı bile dizideki bir öğe oluşturun.