It'll look like the style you have <h2> set to, and it'll say whatever you have stores in $quotes[$i]. If I'm correct, the .= operator just adds '<h2>'. $quotes[$i] .'</h2>' to the end of what you originally set to $test.
EDIT: I have been ninja'd, and with a much better answer than my own. Disregard this post.
This post has been edited by KruSuPhy: 12 March 2014 - 05:17 PM
If you're new to PHP, pay special attention to the language reference section, especially the first 8 parts of it. If you have a question about something in particular, you can type it in to the search box on the top right. Here are the manual pages for rand and sizeof:
Those pages explain what the built-in functions do. For the "-1", the - is the subtraction operator, you can read about operators in the operators section of the language reference. The subtraction operator does exactly what you would think a subtraction operator would do.
This post has been edited by ArtificialSoldier: 12 March 2014 - 06:27 PM
I understand, but one of the most important skills that a programmer can have is the ability to do research. Out of everything that I learned while in college, the only thing I use every single day is being able to research. Everyone has questions about what they're doing or what they're working with, if you know how to answer your own questions then you will be much more effective in your work. Feel free to ask whatever you want to ask, but make sure that you understand that those answers are probably out there if you just go and look. Look what you get if you search for "php rand", for example:
That's a whole list of things including the manual that I linked you to, discussions about random number generators, etc. You are more than welcome to ask questions to help you learn, but asking someone else shouldn't be your first choice, there are a lot of resources out there. I'm not trying to dissuade you from asking questions though, I'm just trying to make the point that knowing how to do research is as important a skill as anything else.