A value passed in the url will be treated as a string. You can use "ctype_digit" to check for positive integerness (only digits, so negative numbers will fail), or serialize it on the sending side. When unserialized it will then pass the "is_int()" test.