<?php $inputs = [ '42', '-42', 42, -42, 42.2, -42.2, 'pi', ]; foreach ($inputs as $input) { var_dump($input == (int) $input && is_numberic($input)); }
You have javascript disabled. You will not be able to edit any code.