If the input is an associative array the keys are preserved.
array_filter() returns an array containing all the elements of input filtered according a callback function. If the input is an associative array the keys are preserved.