public static function smrtr($haystack, $aMatch, $aDelimiter = array("{","}")) {
        $aCleaned = array();

        foreach ($aMatch as $key => $v) {
            $aCleaned[$aDelimiter[0].$key.$aDelimiter[1]] = $v;
        }

        return strtr($haystack, $aCleaned);
    }
public static function smrtr($haystack, $aMatch, $aDelimiter = array("{","}")) {
        $aCleaned = array();

        foreach ($aMatch as $key => $v) {
            $aCleaned[$aDelimiter[0].$key.$aDelimiter[1]] = $v;
        }

        return strtr($haystack, $aCleaned);
    }
public static function smrtr ( $ haystack , $ aMatch , $ aDelimiter = array ( "{" , "}" ) ) { $ aCleaned = array ( ) ; foreach ( $ aMatch as $ key => $ v ) { $ aCleaned [ $ aDelimiter [ 0 ] . $ key . $ aDelimiter [ 1 ] ] = $ v ; } return strtr ( $ haystack , $ aCleaned ) ; }
Smrtr the smartest micro template engine

@param $haystack
@param $aMatch
@param array $aDelimiter
@return string
Smrtr the smartest micro template engine