虫言虫语 虫言虫语

全角半角字符串替换

in 默认分类read (46212) 文章转载请注明来源!
function Sbc2Dbc($str)
{
    $arr = array(
        '0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9',
        'A' => 'A', 'B' => 'B', 'C' => 'C', 'D' => 'D', 'E' => 'E', 'F' => 'F', 'G' => 'G', 'H' => 'H', 'I' => 'I', 'J' => 'J',
        'K' => 'K', 'L' => 'L', 'M' => 'M', 'N' => 'N', 'O' => 'O', 'P' => 'P', 'Q' => 'Q', 'R' => 'R', 'S' => 'S', 'T' => 'T',
        'U' => 'U', 'V' => 'V', 'W' => 'W', 'X' => 'X', 'Y' => 'Y', 'Z' => 'Z', 'a' => 'a', 'b' => 'b', 'c' => 'c', 'd' => 'd',
        'e' => 'e', 'f' => 'f', 'g' => 'g', 'h' => 'h', 'i' => 'i', 'j' => 'j', 'k' => 'k', 'l' => 'l', 'm' => 'm', 'n' => 'n',
        'o' => 'o', 'p' => 'p', 'q' => 'q', 'r' => 'r', 's' => 's', 't' => 't', 'u' => 'u', 'v' => 'v', 'w' => 'w', 'x' => 'x',
        'y' => 'y', 'z' => 'z',
        '(' => '(', ')' => ')', '〔' => '(', '〕' => ')', '【' => '[', '】' => ']', '〖' => '[', '〗' => ']', '“' => '"', '”' => '"',
        '‘' => '\'', '\'' => '\'', '{' => '{', '}' => '}', '《' => '<', '》' => '>', '%' => '%', '+' => '+', '—' => '-', '-' => '-',
        '~' => '~', ':' => ':', '。' => '.', '、' => ',', ',' => ',', '\、' => ',', ';' => ';', '?' => '?', '!' => '!', '…' => '-',
        '‖' => '|', '\”' => '"', '\'' => '`', '\‘' => '`', '|' => '|', '〃' => '"', ' ' => ' ', '×' => '*', ' ̄' => '~', '.' => '.', '*' => '*',
        '&' => '&', '<' => '<', '>' => '>', '$' => '$', '@' => '@', '^' => '^', '_' => '_', '"' => '"', '¥' => '$', '=' => '=',
        '\' => '\\', '/' => '/'
    );
    return strtr($str, $arr);
}
jrotty WeChat Pay

微信打赏

jrotty Alipay

支付宝打赏

文章二维码

扫描二维码,在手机上阅读!

发表新评论
已有 13205 条评论
  1. Lesswesty
    Lesswesty
    回复

    Acquistare Kamagra Caen http://viacialisns.com/# - cialis Zithromax Cost Cvs cheapest cialis Cheap Viagra Nz

  2. ZakDes
    ZakDes
    回复

    anafranil 25mg hydrochlorothiazide 12.65 mg wellbutrin xl baclofen cost cheap phenergan

  3. TeoDes
    TeoDes
    回复

    where can i buy ampicillin

  4. TedDes
    TedDes
    回复

    buy anafranil hydrochlorothiazide 25 mg tablet baclofen wellbutrin generic

  5. YonDes
    YonDes
    回复

    prescription viagra wellbutrin sr

博客已萌萌哒运行
© 2020 由 Typecho 强力驱动.Theme by Yodu
前篇 后篇
雷姆
拉姆