Hi, i m writing a routine to parse XML file.
I have a global array, in one function I assign data to it, in other function i use the data for manipulation, once the manipulation is over i want to get rid of the data content within the array. I m using unset($array) but seems like it is still holding the previous values. How do i get rid of the already existing values within the global array ????
function cData($parser,$data)
{
global $sz_qty_grp;
$sz_qty_grp[$curr_size] = $data;
}
function endTag($parser,$name)
{
global $sz_qty_grp;
$order_item[$alt_id][size_cnt]=$sz_qty_grp;
unset($sz_qty_grp);// Does not work
}
I would really appreciate if someone cud help me.
Thank you
Viv