We can check in MYSQL for example SELECT * FROM smth WHERE id IN(1,2,3) and select things where id 1, 2 or 3.
Is it possible to do it in PHP? To change this line:
if($_GET['mi'] == 4 || $_GET['mi'] == 5) {
do_something();
}
into a shorter line? Like if($_GET['mi'] in(1,2,3)) { true(); }
Thanks.
Sure, use
in_array: