OK, this sounds really stupid, but...
<?php
$var[1] = "value";
$var[2] = "value";
$var[3] = "value";
$var[4] = "value";
?>
Obviously there are 4 elements to this array, but how do I make my script count them?
E.g.
<?php
$var[1] = "value";
$var[2] = "value";
$var[3] = "value";
$var[4] = "value";
$numberOfElements = 4;
?>
This probably has something to do with for() or foreach(), but I never really understood those, so....
Thanks ahead of time.
~Lupus