title: Session array accessing on next button click of next button
body: <p>How to get next array element from session array on next button click?
  I tried <code>next($_SESSION['qid'])</code> it didn't work</p>
  
  <pre><code>if((int)$_SESSION['qn']&lt;=20) {
    $_SESSION['qn']=$_SESSION['qn']+1;
    $_SESSION['qid']++;
  }
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>$_SESSION['qid']=next($_SESSION['qid']);
  </code></pre>
  
  <p>But this neither worked. Can someone help me?</p>