1$colors = array("blue","green","red");
2
3//delete element in array by value "green"
4if (($key = array_search("green", $colors)) !== false) {
5 unset($colors[$key]);
6}
1if (($key = array_search('strawberry', $array)) !== false) {
2 unset($array[$key]);
3}
1// matrix array
2foreach($appsList as $key => $app) {
3 if($app["app_status"] !== "approved") {
4 // remove orange apps
5 unset($appsList[$key]);
6 }
7}