Skip to content

Reject can use associative array#34

Open
kpitn wants to merge 1 commit intobrianhaveri:masterfrom
kpitn:patch-1
Open

Reject can use associative array#34
kpitn wants to merge 1 commit intobrianhaveri:masterfrom
kpitn:patch-1

Conversation

@kpitn
Copy link

@kpitn kpitn commented Apr 23, 2014

You can use this syntax to reject a key/value from an associative array.

__::reject($params, function($k,$v) { return in_array($k,array("test")); });

You can use this syntax to reject a key/value from an associative array.

__::reject($params, function($k,$v) { return in_array($k,array("test")); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant