Accepts a key-value array of replacements, the key beeing the value to be replaced, the value beeing the replacement.
| category | Formagic |
|---|---|
| package | Filter |
| author | Florian Sonnenburg |
| copyright | Copyright (c) 2009 Florian Sonnenburg |
| version | $Id: Replace.php 169 2012-05-06 20:16:16Z meweasle $ |
__construct(array $replacements)
arrayFind-Replace-Array
filter(mixed $value) : mixed
Uses the PHP function strtr() for replacing.
mixedThe value to be filtered
mixedThe filtered value$_replacements : array