Array Exercises
What I was hoping you guys could do is make a php file that stores peppers and scoville ratings, each in there own array, then run thru a for (or while) loop to produce a table that lists an index, a pepper name, and its scoville rating. Here is what the table might look like without the scoville rating:
| 1 | Bell |
| 2 | Poblano |
| 3 | Jalapeņo |
| 4 | Serrano |
| 5 | Habanero |
Here is some php source code to produce the table above.
(Depending on browser and site, you might have to actually save that phps file and open it with a text editor)
You can modify that code; adding a second array that stores the corresponding scoville rating.
That table might look something like this (click here)
here are some examples:
pepperfun
wikipeppers