Which server side language to learn: php or java?

Hi,

I would like to learn a server side language which will use to connect with Flash projects when needed and i have a dilemma which one to learn: php or java so i would like to hear your opinions?

My opinion is that php is perhaps easier to learn but on the other side Java has similar syntax to ActionScript. Then when it comes to hosting, php is pretty much standard and Java hosting is additinal most of the time so it means more expensive. When it comes to language power, i will use it to do classic server side scripting needed in Flash pages or applications so i believe both java and php can do the job, Java will be more powerful when it comes to enterprise application but i am not there yet :slight_smile:

What do you guys think, what would be your choice?

best regards