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)
array
Find-Replace-Array
filter(mixed $value) : mixed
Uses the PHP function \strtr() for replacing.
inherited_from | \Formagic_Filter_Interface::filter() |
---|
mixed
The value to be filtered
mixed
The filtered value$_replacements : array