I am working on a new test page using an array containing strings. I'd like to show each string in the array one at a time and move through them with a previous and back button/link on the test page.
$myArray = Array(
<< prev. My favorite word is <b>cat</b> next >>
//on click-next..$myArray… My favorite word is <b>hat</b> …
At the moment, I am thinking doing a count 0,1,2,3, etc. If the number is greater than 0, I could use prev. to go backwards. I am new to php, so seeing what options exist. It's probably best to use a database for this, but I am just using a hardcoded array at the moment.
Thanks in advance.