I am new to programming and I've seen lots of posts making fun of PHP. Why does it gets so much hate? What language should I learn for web developing instead of it?
EDIT: Considering the fact that I already know JS.
PHP is incredibly popular. A lot of very useful things is written in PHP or what started as a dialect of PHP including WordPress, Facebook, and Wikipedia. PHP is ubiquitous and incredibly easy to get started...