Since: 2.3
pods_list_filter
Filters a list of objects or arrays, based on a set of key => value arguments.
Function Definition
function pods_list_filter ( $list, $args = array(), $operator = 'AND' )
Source File: /pods/includes/data.php
Parameters
Parameter | Type | Details |
---|---|---|
$list | (array|object) | An array or object, with objects/arrays to filter |
$args | (array) | An array of key => value arguments to match against each object |
$operator | (string) | The logical operation to perform:'AND' means all elements from the array must match;'OR' means only one element needs to match;'NOT' means no elements may match. The default is 'AND'. |
Returns
(array)