Accepts a key-value array of replacements, the key being the value to be replaced, the value being the replacement.
| package | Formagic\Filter |
|---|---|
| author | Florian Sonnenburg |
| since | 2009 First time introduced |
__construct(array $replacements)
arrayFind-Replace-Array
filter(mixed $value) : mixed
Uses the PHP function \strtr() for replacing.
| inherited_from | \Formagic_Filter_Interface::filter() |
|---|
mixedThe value to be filtered
mixedThe filtered value$_replacements : array