For the given array remove elements that are in the list of given $values

array:remove_list_of_values(ARRAY $array, ARRAY $values, BOOL $strict_match=FALSE) : ARRAY

# note: this function keeps key->value association
array:remove_list_of_values(["foo","bar","zoo"],["foo","zoo"])
#=> [ 1 => "bar" ]

array:remove_list_of_values(["name" => "foo", "email" => "bar"], ["bar"])
#=> [ "name" => "foo" ]

# note: by default it uses non-strict match (==) where 1 == "1"
array:remove_list_of_values(["1",2],[1])
#=> [ 1 => 2 ]

# note: you can use strict match (===) where 1 is not equal to "1"
array:remove_list_of_values(["1",2],[1], true)
#=> [ "1", 2 ]

Copyright ©2013-2022 SunSed®. All rights reserved.