>>776

$input = "999− 9  9 9―99 9 9";
$before = array("−","ー","ー","−","―");

$input=mb_convert_kana($input,"as","EUC-JP");

$input = str_replace ($before, '-', $input);
$input = str_replace (' ', '', $input);

print($input);

こんなんでもいいんじゃない?