function number($str){return preg_replace('/\D/s', '', $str);
}
怎么把上面打印的值传递给 $asd ?
$asd = number($str) 就可以啦