title: Explode to array and print each element as list item
body: <p>I have a set of numbers in a table field in database, the numbers are separated by comma ','.
  I am trying to do the following:</p>
  
  <p>Step 1. : SELECT set of numbers from database and explode it to array :</p>
  
  <pre><code>$array =  explode(',', $set_of_numbers);
  </code></pre>
  
  <p>Step 2. : Print each element of the array as list item by using <code>foreach loop</code> :</p>
  
  <pre><code>foreach ($array as $list_item =&gt; $set_of_numbers){
      echo "&lt;li&gt;";
      print_r(array_list_items($set_of_numbers));
      echo "&lt;/li&gt;";}
  </code></pre>
  
  <p>Please anybody tell me what is wrong. Thank you.</p>