re-added exidently removed swap method

This commit is contained in:
Ralf Becker 2005-05-10 14:43:42 +00:00
parent 6ae229d703
commit dee6d75828

View File

@ -1414,4 +1414,17 @@
return implode(', ',$labels);
}
};
/**
* swap the values of $a and $b
*
* @param mixed &$a
* @param mixed &$b
*/
function swap(&$a,&$b)
{
$h = $a;
$a = $b;
$b = $h;
}
}