Could you tell me your way to delete an item from array? Do you think it\'s good?
The common way:
According to the manual
unset($arr[5]); // This removes the element from the array
The filtered way:
There is also the array_filter() function to take care of filtering arrays
$numeric_data = array_filter($data, "is_numeric");
To get a sequential index you can use
$numeric_data = array_values($numeric_data);
References
PHP – Delete selected items from an array