title: exploded string manipulation
body: <p>I have already seen examples for string manipulation using "explode" but none of them does my job..</p>
  
  <p>I have an array of exploded strings:</p>
  
  <pre><code>$grand_result = 12,5,7,3,2,1 ;
  $grandparent_id =  explode(",",$grand_result);
  </code></pre>
  
  <ul>
  <li><p>i want to insert some values in db having id = <code>$grand_result</code> except first value returned (12) in this case</p></li>
  <li><p><code>$grand_result</code> can have many values i want to fetch only first 7 values..
  how can i do that ...thanks in advance</p></li>
  </ul>