Write a PHP script to remove nonnumeric characters except comma and dot
- برمجة بي اتش بي
- 2021-09-09
- mhanasmh00489829403
الأجوبة
<?php
$str1 = "$12,334.00A";
echo preg_replace("/[^0-9,.]/", "", $str1)."\n";
?>
Sample Output:
12,334.00
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال