how does one totally remove an array passed into a function?
php.net already stated that unset called within function will not remove the element passed in.
I tried nulling and unsetting each element in a loop, not working.
Not even setting the whole array to null??
$arrHead = array("badana","cap","scarf");
killHead($arrHead);
echo "<br>arrHead count ". count($arrHead);
function killHead(&$arrHead){
foreach($arrHead as $key){
$arrHead[$key] = null;
unset($arrHead[$key]);
}
unset($arrHead);
$arrHead = null;
}