I'd really venture into learning the language first. PHP is pretty far from C/C++ and are meant to do different things. Jumping straight into Graphics, OpenGL specifically, is pretty risky and could just end up taking a lot of time without understanding the language first.