Trying to process an array and remove a specific associative array in a larger array set. The code I have now works in removing the specific sections locally, within the for loop, but doesn't effect the original $cursor
array.
foreach($cursor as $key) {
foreach($key as $value => $k){
if ($value == 'user'){
unset($k['confinfo']);
}
}
}
Is it a GLOBAL variable problem? How to unset the original variable?