Hi
I have the following code that I am using to store values in an array, but is there anyway that I can count the number of items in the array without using the counter that I have, I mean is there any index style array command.
Also: Does any one know any good tutorials on php arrays.
Regards
// Set the counter
$_SESSION['counter']++;
// Set the array
$_SESSION['grind_array'][] = array(
'Interest' => $_SESSION['Interest'],
'Subject' => $_SESSION['Subject'],
'Level' => $_SESSION['Level'],
'counter' => $_SESSION['counter']
);
I have the following code that I am using to store values in an array, but is there anyway that I can count the number of items in the array without using the counter that I have, I mean is there any index style array command.
Also: Does any one know any good tutorials on php arrays.
Regards
// Set the counter
$_SESSION['counter']++;
// Set the array
$_SESSION['grind_array'][] = array(
'Interest' => $_SESSION['Interest'],
'Subject' => $_SESSION['Subject'],
'Level' => $_SESSION['Level'],
'counter' => $_SESSION['counter']
);