Menu
I have a array cookie approx like this:
SESID=blablabla
var[1]=text1
var[2]=text2
var[3]=text3
name = test
The 1st time i call the “get_basked_index()” function it returns the nummer of the var[] record (in this case 3)
But when i call this function again for the 2nd time the record returns 0
How is this posible ?
[CODE]
function get_basked_index()
{
$basked_counter = 0;
while (list($Index, $Value) = each ($_COOKIE)) {
if (is_array($Value)) {
while (list($j, $waarde) = each ($Value)) {
$basked_counter++;
}
}
}
return $basked_counter;
}
Could someone help me with this problem ?