public static function replaceSpecialChars($str)
    {
        return preg_replace(array_keys(self::$specialCharsArray), array_values(self::$specialCharsArray), $str);
    }
public static function replaceSpecialChars($str)
    {
        return preg_replace(array_keys(self::$specialCharsArray), array_values(self::$specialCharsArray), $str);
    }
public static function replaceSpecialChars ( $ str ) { return preg_replace ( array_keys ( self :: $ specialCharsArray ) , array_values ( self :: $ specialCharsArray ) , $ str ) ; }
Replace special characters in a given string

@access public
@param string $str The string in which to replace special characters
@return string The string with the special characters replaced
Replace special characters in a given string