Using the following code, how do I check if the array contains a particular id, and if it does, display the following message, else add the id to the array?
Message "ID Already Exists!"
<?php
session_start();
$_SESSION['ids'][] = $_GET['id'];
$array = $_SESSION['ids'];
print_r($array);
?>