public static function replace(array $words, $replacement, $text)
    {
        $replace = (mb_strlen($replacement) > 1)
            ? $replacement
            : static::transformReplacement($words, $replacement);

        return str_replace($words, $replace, $text);
    }
public static function replace(array $words, $replacement, $text)
    {
        $replace = (mb_strlen($replacement) > 1)
            ? $replacement
            : static::transformReplacement($words, $replacement);

        return str_replace($words, $replace, $text);
    }
public static function replace ( array $ words , $ replacement , $ text ) { $ replace = ( mb_strlen ( $ replacement ) > 1 ) ? $ replacement : static :: transformReplacement ( $ words , $ replacement ) ; return str_replace ( $ words , $ replace , $ text ) ; }
Replace the text with replacement according to the given words.

@param array $words
@param string $replacement
@param string $text

@return string
Replace the text with replacement according to the given words .