$content = '123456 1';
$len = strlen($content);
$str = "";
for($i=0;$i<$len;$i++){
if((ord($content[$i]) >= 0x30 && ord($content[$i]) <= 0x39) || $content[$i] == "." || $content[$i] == " " || $content[$i] == "\t" || $content[$i] == "\n"){
$str = $str.$content[$i];
}
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号