Ok the function clear_parse is put in one page twice, but with another sub function. Very strange way of programming.
FIRST:
Code:
function clear_parse ( $ReturnVar = "")
{
$this->clear($ReturnVar);
}
which uses function clear:
Code:
function clear ( $ReturnVar = "" )
{
// Clears out hash created by call to parse()
if(!empty($ReturnVar))
{
if( (gettype($ReturnVar)) != "array")
{
unset($this->$ReturnVar);
return;
}
else
{
while ( list ($key,$val) = each ($ReturnVar) )
{
unset($this->$val);
}
return;
}
}
// Empty - clear all of them
while ( list ( $key,$val) = each ($this->HANDLE) )
{
$KEY = $key;
unset($this->$KEY);
}
return;
} // end clear()
SECOND ONE
Code:
function clear_parse ()
{
$this->clear_assign();
}
clear_assign is:
Code:
function clear_assign ()
{
if(!(empty($this->PARSEVARS)))
{
while(list($Ref,$Val) = each ($this->PARSEVARS) )
{
unset($this->PARSEVARS["$Ref"]);
}
}
}