1 | <?php |
||
7 | class Arr |
||
8 | { |
||
9 | /** |
||
10 | * Return an array of enabled values. Enabled values are either: |
||
11 | * - Keys that have a truthy value; |
||
12 | * - Values that don't have keys. |
||
13 | * |
||
14 | * Example: |
||
15 | * |
||
16 | * Arr::getToggledValues(['foo' => true, 'bar' => false, 'baz']) |
||
17 | * // => ['foo', 'baz'] |
||
18 | * |
||
19 | * @param mixed $map |
||
20 | * |
||
21 | * @return array |
||
22 | */ |
||
23 | public static function getToggledValues($map) |
||
33 | } |
||
34 |