PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I know this is probably very simple but i just can't get my foot on it tonight. I have two strings in an array and i want these two to loop and print for an x amount of time. Right now i have more than two strings in the array to accomplish this task and it is definitely not to right way to go because i am working on a search engine and the elements in this array has to be printed out as the list grows. Right now my array looks like so :
and then just loop through that for an x amount of time. I tried looping the above with a for-loop but it would only print the two and quit, not keep going. I know i am overlooking something here...
are different stripe colors in my .css file. "a" is white and the other is blue. I want these stripes to be outputted with my search results, and they must to be outputted over and over, as much as the results are printed. It is a little hard to explain but it should look something like this :
-----------------
result 1
-----------------
result 2
-----------------
result 3
-----------------
Shouldn't that just loop through however many times you need and add values "a" and "b" to the array? I am unsure of the specific goal for you and your site, or if this is the best thing to do, but is this not a way to loop through adding strings to an array?