I have an array called $myarray –
id position status name
4 23 4 john
3 45 3 mike
4 23 0 john
7 25 2 sam
etc.
i need to filter array by “id” and when similar records found i need to evaluate by “status”key to remove number that’s 0 or less than “status” in matching row. Is there some way to do it fast like some function?
This removes all occurences of
status=0. If u want to keep these rows, when there is no other matchingid, remove the$value['status'] > 0 &&