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}
1// matrix array
2foreach($appsList as $key => $app) {
3 if($app["app_status"] !== "approved") {
4 // remove orange apps
5 unset($appsList[$key]);
6 }
7}
1$colors = arrray("blue","green","red");
2if(($key = array_search("greeb",$colors)) !== false)
3{
4unset("$colors[$key]);
5}