Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

multidimensional array item remove php

function removeElementWithValue($array, $key, $value){
     foreach($array as $subKey => $subArray){
          if($subArray[$key] == $value){
               unset($array[$subKey]);
          }
     }
     return $array;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multidimensional #array #item #remove #php
ADD COMMENT
Topic
Name
1+3 =