Php 将Unicode数字转换为普通数字
我有一些unicode数字,比如১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯ 我需要把它们转换成普通的123456789Php 将Unicode数字转换为普通数字,php,mysql,Php,Mysql,我有一些unicode数字,比如১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯ 我需要把它们转换成普通的123456789 为了把它们放进我的数据库 使用str\u repalce执行此操作 $bng = array("১", "২", "৩"); $eng = array("1", "2", "3"); echo str_replace($bng, $eng, "১৩"); // 13 使用str\u repalce执行此操作 $bng = array("১", "২", "৩"); $eng =
为了把它们放进我的数据库 使用
str\u repalce
执行此操作
$bng = array("১", "২", "৩");
$eng = array("1", "2", "3");
echo str_replace($bng, $eng, "১৩"); // 13
使用
str\u repalce
执行此操作
$bng = array("১", "২", "৩");
$eng = array("1", "2", "3");
echo str_replace($bng, $eng, "১৩"); // 13
使用
str\u replace
,制作两个数组并使用该数组。使用str\u replace
,制作两个数组并使用该数组。