static function strReplace($str,$params)
    {
        foreach ($params as $k=>$v) {
            $str = str_replace($k, $v, $str);
        }
        return $str;
    }
static function strReplace($str,$params)
    {
        foreach ($params as $k=>$v) {
            $str = str_replace($k, $v, $str);
        }
        return $str;
    }
static function strReplace ( $ str , $ params ) { foreach ( $ params as $ k => $ v ) { $ str = str_replace ( $ k , $ v , $ str ) ; } return $ str ; }
A mass string replace with parameters

@param string $str    The template string
@param array  $params An associate array containing key value to replace

@return string The string that is replaced key with value
A mass string replace with parameters