I have an PHP array that looks something like this:
Index Key Value
[0] 1 Awaiting for Confirmation
[1]
for single array Item use reset($item)
Try this:
$keys = array_keys($array, "Completed");
/edit As mentioned by JohnP, this method only works for non-nested arrays.
$key = array_search("Mark As Spam", $array);
unset($array[$key]);
For 2D arrays...
$remove = array("Mark As Spam", "Completed");
foreach($arrays as $array){
foreach($array as $key => $value){
if(in_array($value, $remove)) unset($array[$key]);
}
}