Hello,
I’ve had a little experience with PHP and am trying to create what I think is a simple page. Please pardon my lack of experience! I’ve tried to read a good deal on this and can’t seem to figure it out, though I think it is quite simple.
Let’s say I have an an array consisting of the letters A B C D E F.
How can I create a page where the user first encounters the letter A, then on each page refresh the next element from the array appears, in addition to what has come before it: i.e. on the second click A B appears, then on the third A B C, and on the fourth A B C D, etc.?
I am aware of current($array) and next($array) etc. but can’t figure out how to factor in the user’s clicks to refresh: do I need an if construct here? Or is it even simpler?
Any help will be very much appreciated.
All the very best,
cw322