I have some checkboxes that can be checked. They look like
<input type="checkbox" name="order[123]" value="1">
Now I am checking the formdata and I filter the ids in the order-array this way, before i look them up in the database.
$orderids = preg_grep('/^\d+$/', array_keys($_POST['order']));
is there a more efficient way for doing this?