Filters the list of nodes by passing each value in the current CFArray
object through a function. The node will be removed if the function returns false
.
The callback function takes three parameters:
$item
-mixed
- Optional - The individual node in the array.$key
-mixed
- Optional - The key for the array node.$bind
-mixed
- Optional - The variable that was passed into the $bind parameter.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The callback function to execute. PHP 5.3 or newer can use an anonymous function. |
|
|
Optional |
A variable from the calling scope to pass-by-reference into the local scope of the callback function. |
Returns
Source
Method defined in utilities/array.class.php | Toggle source view (15 lines) | View on GitHub