Forum Moderators: coopster
$_GET['id']
?id=3523415
Which is the best way to verify that the variable only contains numbers? Would it be:
a.
preg_match("~^[0-9]+$~",$_GET['id'])
or
b.
is_int($_GET['id'])
-30
regexp can slow you down sometimes..