Caster::filter()

static array filter(array $a, int $filter, array $listedProperties = array())

Filters out the specified properties.

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.

Parameters

array $a The array containing the properties to filter
int $filter A bit field of Caster::EXCLUDE_* constants specifying which properties to filter out
array $listedProperties List of properties to exclude when Caster::EXCLUDEVERBOSE is set, and to preserve when Caster::EXCLUDENOT_IMPORTANT is set

Return Value

array The filtered array
doc_Symfony
2016-10-28 06:08:21
Comments
Leave a Comment

Please login to continue.