以下のコードを書きましたが、うまくいきません:
$t = "۰۱۲۳۴۵۶۷۸۹٤٥٦";
$correct = array("0","1","2","3","4","5","6","7","8","9","4","5","6");
$wrong = array("٠","١","٢","٣","٤","٥","٦","٧","٨","٩","۴","۵","۶");
echo $t = str_replace($wrong,$correct, $t);
そして結果は正しくない
۰۱۲۳456۷۸۹۰۱۲۳456۷۸۹456
スタックと同じ質問を検索しますが、その回答は役に立ちません。