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