take64/citrus-intersection

This package is abandoned and no longer maintained. No replacement package was suggested.

php switch library

v1.0 2020-02-20 17:30 UTC

This package is auto-updated.

Last update: 2020-08-20 19:02:28 UTC


README

php switch library

USAGE

$value = 'admin';
$result = Intersection::fetch($value, [
    'user' => function () {
        return 'John';
    },
    'admin' => function () {
        return 'Alice';
    },
], true);

// $result: 'Alice'