See this code: http://codepad.org/s8XnQJPN
function getvalues($delete = false)
{
static $x;
if($delete)
{
echo \"array before deleting:\\n\";
If a static variable is unset, it destroys the variable only in the function in which it is unset. The following calls to the function (getValues()) will make use of the value before it was unset.
This is mentioned the documentation of the unset function as well. http://php.net/manual/en/function.unset.php