Learn C++ first, since php is almost exactly like php, also learn java after you learn C++ you'll be able to understand java and learn the langauge much faster after you learn a basic language such as C++.
Some C++ topics you should research are, loops, variables, functions, structs, classes. I...