Funny. For me, it was the other way around. Learning how to build web sites helped me figure out programming skills for making games from the ground up, along with studying 80s computers and game consoles to get ideas on how to more efficiently organize and store my game data. Even though learning PHP was a bit of a "Really? You went with THAT?!" moment, it was still an important learning curve. Just... do not ask how my php game worked out, okay? Please don't.