This is my first blog related to PHP and Nodejs. I will go through compare both this technologies and let's understand both languages!
PHP (Hypertext Preprocessor) was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. It is highly used languages for creating websites. More than 45% of the Website Still use PHP.
Some of successful websites which are now globally still uses PHP like Facebook, Wikipedia, Tumblr, Slack, etc...
Node js uses by popular companies like Uber, Trello, PayPal, etc..
For Learning purpose you can dirty your hands on both. PHP is easy to learn and can create a website easily with only some of knowledge of html and css and can deploy with one click.
While in Nodejs You must understand asynchronous behaviour and syntax of javacript. It's not big deal, but must have knowledge of async/await, callbacks, promises, modules, prototypes.
Well, This is interesting. Both languages have their own pros and cons. It does mean that you can not build same application in either PHP or Node js. It depends on requirements of project.
If you need build a blogging, E-commerce website then PHP best suitable.