PHP question: how to reach ARRR[2], ARRR[4] etc of ARRR[] array?

Fagush

New member
Hello. ARRR[] has 50 items.

foreach($_SESSION['$ARRR'] as $itm ) {echo '<tr><td> ',$itm,' </td></tr>'; } //works fine

$i=2
$_SESSION['$ARRR['$i']'] // shows error "Notice: Undefined index:"

How to show all even items using FOR?

P.S. Sessions were used becase ARRR was defined on another page.
Thank you.
 
Back
Top