It really comes down to what kind of job or career you want.
If you are wanting to build web sites, I would recommend focusing more on front-end (javascript) development as that's where most of the magic will happen as web developers shift away from back-end generated sites to front-end sites that connect to APIs. That said, the front-end developer market is saturated with people, and that will continue to grow because a lot more graphics designers are learning javascript and in some cases, the graphics editing software they are using will auto-generate javascript routines for tasks and effects.
However, if your goal is to work on servers such as system or network administration, knowing a server-side scripting language is VERY important no matter what it is. While PHP will work for that, if you're looking for a job or career, especially high paying, in those areas, python will be much better mainly because a lot of companies use it and are looking for people who know it as part of their sys/net admin and/or devop openings. Python, PHP, Node.js, etc. are all good API languages as well.
Also, the world is saturated with PHP developers, most of whom self-taught without any design principles or concepts, which means ugly code. I learned PHP a long time ago mainly because a lot of the most common open source web applications are written in it including many popular CMS and forum software applications.
No matter what you do though, I think javascript is a must-learn language for any developer. With the growing popularity of Node.js and the transition to API-based web development, javascript will be integral to almost every web-based project going forward.