<?php $numericString = '1.1'; if (!is_numeric($numericString)) { throw new Exception('not numeric'); } if (ctype_digit((string) $numericString)) { var_dump('YES'); } else { var_dump('NO'); }
You have javascript disabled. You will not be able to edit any code.