Hi,
pretty complicated but here goes, my problem is that I can't unset $items in the while loop. script 1 works fine. script 2 always adds to the array but only in the function
I dont know if i am being clear, but I cant seem to affect the $GLOBALS[] value of $items
but I cant do $GLOBALS[item[]] ....
script 1
GLOBAL $items
$items[] = array(1,2,3);
a();
script 2
GLOBAL $items
while(condition)
{
$items[] = array(1,2,3);
a();
//I need to unset items here
}
function a()
{
GLOBAL $items
case 1 b();
case 2 c();
//depending on option calls different functions
}
function b()
{
manipiulate $items
}
function c()
{
manipiulate $items
}