You should learn PHP first because it's very easy to learn, then you should switch to Java when you have enough experience in programming because Java is more difficult than PHP, and if you want to create powerfull and fast applications for any OS then you should learn C/C++.