I have two problems concerning arrays
1.: For any reason the count() function makes no sense to me. It always counts one instead of actuall number of elements as if it was an ordinary variable (but I have tried for example to put 30 elements into an (ordinary) array and 30 out => they were stored) this isn't only with session arrays
2.: next problem is only with session arrays. because i can't output elements by using a loop. It works by pointing to any certain index but not in a loop.
Can you please show me the input to an array of a session by using a loop and afterwards the output.
thanks a lot
wolfgang
$SESSION['sitems['.$SESSION['searchcounter'].']']=$_GET['suche'];
$sesar=$_SESSION['sitems'];
echo " länge sarr: ".count($sesar);
$i = 0;
for($i; $i<30;$i++ )
{
echo "kommt rein";
echo $i."
<br>".$_SESSION['sitems['.$i.']'];
echo " l ".count($_SESSION['sitems']);
}