I too find it easier to learn in a class where I can ask the instructor questions however since I can't always participate in a classroom I have developed a method that works for me. I will obtain several books on the subject by different authors. I use one as my main course plan and if I reach a point where I don't understand something, I will look up that subject in other the other books. When a different point of view is given, many times the subject becomes clear. For the last year I have been using online videos to learn PHP. There are many sources out there, I used John Morris on You Tube as a start. He has many free tutorials as well as a paid course on PHP and MySql. I then expanded my knowledge with courses from https://tutsplus.com/ . Most of their courses have sample code to go along with the videos. This is a paid site.