I have written an API script in PHP which receives a single value for parameter 'id' and returns the corresponding entry in db.How can I receive an array of values for 'id' and return all corresponding entries?
if(@$_GET["id"]){
@$id=$_GET['id'];
$where="where id=".$id;
}else{
$id=0;
$where="";
}
PS I have only started working with PHP.