Answers for "remove multiple items from array php"

PHP
0

multidimensional array item remove php

function removeElementWithValue($array, $key, $value){
     foreach($array as $subKey => $subArray){
          if($subArray[$key] == $value){
               unset($array[$subKey]);
          }
     }
     return $array;
}
Posted by: Guest on August-02-2021
0

php unset multiple values

unset($foo1, $foo2, $foo3);
Posted by: Guest on May-11-2021

Code answers related to "remove multiple items from array php"

Browse Popular Code Answers by Language