Now what I’m going to say has some bias, as I learnt PHP first, here we go.
And for that reason I suggest learning PHP first. Some more reasons:
- It is easier to learn; you’ll learn fundamental concepts about programming
- You should learn things like Form Submission, Database access before going to AJAX