title: Looping though data multiple times from array
body: <p>I'm looking to loop through data multiple times if it's stored in the array multiple times.</p>
  <p>I'm storing video ID's in a database as an array, I'm then calling this data using the following code;</p>
  <pre><code>$lessonSingleResultsql = &quot;
  SELECT * 
    FROM `video` 
   WHERE `id` IN ('&quot;.$lessonsResultDataDecode.&quot;') 
   ORDER 
      BY field(id,'&quot;.$lessonsResultDataDecode.&quot;');&quot;;
  
  $lessonSingleResult = $db-&gt;prepare($lessonSingleResultsql);
  if ($lessonSingleResult-&gt;execute()) {
  while ($row = $lessonSingleResult-&gt;fetch(PDO::FETCH_ASSOC)) {
    echo $row['title'];
  }
  }
  </code></pre>
  <p>Value of $lessonResultDataDecode</p>
  <pre><code> 1','5','7','11','12','1','1','4','4','4','4','4','4','2','2','1','4','1','1','1','1','1','9','6','1
  </code></pre>
  <p>Value of $lessonsResultData</p>
  <pre><code> Array
   (
       [videos] =&gt; [1,5,7,11,12,1,1,4,4,4,4,4,4,2,2,1,4,1,1,1,1,1,9,6,1]
   )
  </code></pre>
  <p>It will then echo the title for each video once but if the value is store multiple times I'd like to echo again.</p>
  <p>e.g Title for 1, Title for 5,Title for 7,Title for 11,Title for 12,Title for 1,Title for 1, etc...</p>