I want to unset an element in a global array. I have a delete button that refreshes the page and that deletes (or is supposed to ) whatever items in the array that were checked. This is what I have tried:
unset($GLOBALS['Array'][0]);
and this:
unset($_POST['Array'][0]);
when I try to print the value in Array[0] after using unset() it prints nothing, which is right. The problem is that where I am printing the entire array, it still holds the value of Array[0]. I think it is unsetting the local value but not the global. How do I unset the global value in the array?