+ 2

Which is best to learn PHP or Python?

For my website I am wondering which option would be better for me is it PHP easy,reliable,fast to learn or the Python easy code,vast usage,also fast to learn.Can you make my decision?

22nd Mar 2017, 10:27 AM
Moksh Shah
Moksh Shah - avatar
4 Answers
+ 7
PHP has no design, and I hear bad things about it, so I'd say Python with Django or Flask
22nd Mar 2017, 10:46 AM
Ahri Fox
Ahri Fox - avatar
+ 2
I've used both, my opinion is: I massively prefer coding Python over PHP. Python was very fun to learn, didn't take long to learn basics, and it is easy enough to pretty much "think in". PHP has lots of gotchas - things that you'd expect to be the case after learning some other stuff in the language but just isn't the case, so for me this gets quite frustrating, as I just can't remember a long list of functions and things, so make informed guesses alot (and then immediately run code to check guesses where correct). That said, because PHP is made just for making dynamic websites, learning the basics of it is the same thing as learning how to make a website with it, wheras for Python you've then got to learn a library or CMS. However if you are just making websites that mostly just display content, it is much faster to develop (inc future updates) by using a pre-built CMS (content management system), tweak the HTML a bit, add your content and maybe add on some of your own custom code in whatever language the CMS supports.
25th Mar 2017, 8:01 AM
Phil
Phil - avatar
0
python is easy in for learn and powerful
22nd Mar 2017, 1:20 PM
José Armando Matías
José Armando Matías - avatar
0
I heard that Python is more powerful than PHP but I know just PHP and in my opinion is extremly good for websites! Right now, I am working on (http://logicwebschool.com) and I use just PHP, HTML and Bootstrap. PHP is very powerful too. :D
23rd Mar 2017, 10:08 AM
Gabriel Popa
Gabriel Popa - avatar