class HashmapFilter

Methods

static mixed
filter(string $attrValue, array $map, bool $strict)

Filter a value through a hash map

Details

at line 20
static mixed filter(string $attrValue, array $map, bool $strict)

Filter a value through a hash map

Parameters

string $attrValue

Original value

array $map

Associative array

bool $strict

Whether this map is strict (values with no match are invalid)

Return Value

mixed

Filtered value, or FALSE if invalid