Hi, this is my first time posting here. I am just delving into PHP and I am learning about foreach loops. I have written code in Notepad++ EXACTLY the way I saw it in a tutorial video I watched (I wish I could show the tutorial video to you, but it is on Lynda.com and you have to pay to watch)
I attached the file with my code.
The example 1 code works just fine.
The example 2 code is the one that is not working for some reason. However, it worked for the guy that wrote it in the video, so I am not sure where I am going wrong?
*The comments in green are mainly for myself, I explain things to myself so that I don't forget what the code does
forloops.php
I would appreciate some help. Thank you!!!