Pass each key to callback function and remove that element from the array if callback returns true.

array:remove_key_if(ARRAY $array, FUNCTION $callback) : ARRAY

array:remove_key_if([1,2,3], number:zero?)
#=> [ 1 => 2, 2 => 3 ]

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