Moving The Pointer In An Array
| From: | SOHH Administration | Date: | Mon, 16 Apr 2001 19:37:43 +0000 |
| Subject: | Moving The Pointer In An Array | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8602@lists.php.net to get a copy of this message | ||
Lets say you have and array called $contentarray which contains the
following values in this order: 10,19,9,8,234,3
These values represent the articleID. So if a person was on my site reading
an article the url would look like so:
http://website.com/read.php?articleID=8
So, the article the user is reading is 8. How do I tell the POINTER in the
array that I am at $contentarray[3]? If I need to give more details, holla
back.
Steven