0

Can I learn php instead of JavaScript?

18th May 2020, 5:22 PM
AlĂĄ Daqamseh
AlĂĄ Daqamseh - avatar
5 Answers
+ 4
Definitely not. Php is for backend while JavaScript is for frontend. But you can use JavaScript frameworks for backend as well. Making JavaScript a lot more versatile and useful. Tip: php is dying. Use node.js instead.
18th May 2020, 5:29 PM
Sajid
Sajid - avatar
+ 2
PHP is still very common but things have changed. But these days there are frameworks like Express.js which allow javascript to be used for backend as well as frontend. The popularity of PHP is definitely going down in the Tiobe index.
20th May 2020, 9:00 AM
Ben Meehan
Ben Meehan - avatar
+ 1
I wouldnt suggest learning PHP instead of JavaScript. However you can build complete websites with either one or combine the two. In the current landscape I would suggest keeping PHP on the backend, but it’s definetly an easy language to learn. A good starting point could be to create some projects using only PHP, once you start getting the hang of it try tossing some JavaScript in there for interactivity. When you feel savy enough and want more interraction, toss PHP on the backend for your Data Access Layer and go full ham on JavaScript, maybe even learn a Framework or two. Such as Angular, React, Svelte or Vue. Brgds
18th May 2020, 6:59 PM
Victor Andersson
Victor Andersson - avatar