By default, a single match in the $filter bit field filters properties out, following an "or" logic.
When EXCLUDE_STRICT is set, an "and" logic is applied: all bits must match for a property to be removed.
public static filter ( array $a, integer $filter, array $listedProperties = [], &$count ) : array | ||
$a | array | The array containing the properties to filter |
$filter | integer | A bit field of Caster::EXCLUDE_* constants specifying which properties to filter out |
$listedProperties | array | List of properties to exclude when Caster::EXCLUDE_VERBOSE is set, and to preserve when Caster::EXCLUDE_NOT_IMPORTANT is set |
return | array | The filtered array |