-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Scope of Change
Introduce core functionality in() which searches for elements in a
collection.
Rationale
The PHP functions array_search and in_array have ugly names and a
confusing parameter order.
Functionality
Definition:
<?php
bool in (array list, mixed element)
?>Example:
<?php
if (in (array(1, 2, 3), 1)) {
// ...
}
?>Dependencies
None.
Related documents
n/a