title: checking array of id and value against database
body: <p>This is how the <code>$conversationArray</code> array look like,</p>
  
  <pre><code>array(7) {
    [0]=&gt;
    array(2) {
      ["id"]=&gt;
      string(1) "1"
      ["timestamp"]=&gt;
      int(0)
    }
    [1]=&gt;
    array(2) {
      ["id"]=&gt;
      string(1) "3"
      ["timestamp"]=&gt;
      int(0)
    }
    [2]=&gt;
    array(2) {
      ["id"]=&gt;
      string(1) "4"
      ["timestamp"]=&gt;
      int(0)
    }
    [3]=&gt;
    array(2) {
      ["id"]=&gt;
      string(1) "5"
      ["timestamp"]=&gt;
      int(0)
    }
  </code></pre>
  
  <p>Now I have to check against a table if any of the conversation id has timestamp more than what's given. If yes I need the affected conversation_id.</p>
  
  <p>I'm not sure how to take <strong>id</strong> and <strong>timestamp</strong> from <code>$conversationArray</code> array to fit into this query.</p>
  
  <pre><code> $query = '   
    SELECT conversation_id FROM tbl_notification    
    WHERE timestamp IN &gt;implode(',', $timestamp),   
    AND conversation_id IN &gt;implode(',', $id)  
    ';  
  </code></pre>