I need to check for a form input value to be a positive integer (not just an integer), and I noticed another snippet using the code below:
$i = $user_input_v
The first example is using round to verify that the input is an integer, and not a different numeric value (ie: a decimal).
round
is_int will return false if passed a string. See the PHP manual examples for is_int