全角から半角への変換

$trans = (
   '0' => '0', '1' => '1', '2' => '2', '3' => '3', 
   '4' => '4', '5' => '5', '6' => '6', '7' => '7', 
   '8' => '8', '9' => '9');
$str = strtr($str, $trans);

mb系のmb_convert_kanaというのができるらしいけど、
いい思い出がない。mb系関数には。


strtr
http://search.net-newbie.com/php/function.strtr.html