PHP 正の整数かどうかチェックする

ctype_digit(strval($input))