I have a script that calls code plugins that return associative arrays:
$aData[0]...
$aData[1]...
$aData[2]...
$aData[3]...
$aData[4]...
$aData[5]...
$aData[6]...
$aData[7]...
I would like to run a search on the array data and UNSET the array rows that do not meet my criteria (this part I know how to do). This means I end up with:
$aData[0]...
$aData[1]...
$aData[3]...
$aData[5]...
Once this is done, I'd like to reset the first level key names to be consecutive like this (this is where I need help; I'm hoping for a existing builtin function but so far have not been able to find one):
$aData[0]...
$aData[1]...
$aData[2]...
$aData[3]...
TIA
PS: I'll find out soon enough once this is working but does anyone know is UNSET eats up alot of time? on large arrays?