I can’t believe PHP doesn’t have a built-in function for this…! Code snippet for removing a single index from an array (non-associative).

1
array_splice($array, array_search("Index text", $array), 1);