I have this array:
$array[0]["ID"] = 3;
$array[0]["name"] = "jan";
$array[1]["ID"] = 5;
$array[1]["name"] = "piet";
$array[2]["ID"] = 6;
$array[2]["name"] = "joris";
I want to search the array for "piet". If it finds "piet", then this is what my array should look like:
$array[0]["ID"] = 3;
$array[0]["name"] = "jan";
$array[1]["ID"] = 6;
$array[1]["name"] = "joris";
So it has to remove all of $array[1], then update the keys so there's no "gaps" in the array.
Can this be done?