I have this code: it works fine
Use in_array and add all the values you want to check against into the array:
in_array
if(!isset($_GET['id']) || !in_array($_GET['id'], array('1000', '2000'))){ echo 'not 1k or 2 k'; } else { echo 'is 1k or 2k'; }
Functional example: https://3v4l.org/Q2uao