If I had an array w 8 items in it, and I wanted to read the value in item 6....how would I do that?
In the old Basic days...when you referenced an array element by: $ArrayName(index)
is there an equivalent for PHP?
its tricky... you have to go to php.net and type "array" in the search box...
http://us3.php.net/manual/en/ref.array.php
<?
$arr = array('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight');
echo $arr[5];
?>
displays:
six
Thanks...I actually tried that before posting...but I think there was a syntax error.
Tried again after your post, and it worked fine.
Thanks so much for the help!