What to Learn PHP or Python..?

What you prefer to learn.?

  • Python

    Votes: 69 75.0%
  • PHP

    Votes: 23 25.0%

  • Total voters
    92

KHR

Elite Member
Jr. VIP
Joined
Dec 9, 2013
Messages
4,700
Reaction score
1,635
Hello All,

In all aspects (Resources, Functionality, Job/Freelance Work, Support) which one should learn, Python or PHP.?

Need expert suggestion.?

Thanks
 
Depends imo. For things like scraping, data manipulation, deep learning etc.. python is better. For web development, php is better (simply because wordpress and drupal.. you pay less for hiring a dev.. otherwise.. both are same).


Security wise, python is better because it is less popular as a website script choice (again, because of wp and drupal). So, there's less chance of getting hacked because you left some footprint and didn't patch the vuln.

As for a career choice.. it is tough to say. I earn much more money with JavaScript than what I used to with php. I don't work as a python dev (atleast as the primary responsibility.. testing is a different thing) , so I can't speculate..
 
Last edited:
So there is just room enough for only one program in ur brain? Why not try learning one course all ur life time.

I think the proper way to put that question is by adding “first”, which do one/ you learn first. Because we can learn a lot of things. Nobody said u can only learn one programming language. I mean... What the heck brov?
 
I'd say It highly depends on what you want to do?

Web/Database PHP!
Software/Scripting Python!

I heard Python Is very In demand In today's world.

Also don't just stick with one language! Bjarne the guy who created C++ says knowing atleast 5+ related to your field of expertise Is a good number.

So for example I think knowing atleast 7+ languages Is a good way to go!

Do both never hurts!
 
For IM I think you should learn php, because python is used in machine learning and deep learning
 
That really depends m8. What do you wish to achieve? Are you learning for pure fun? If that so, Python can be really fun (machine learning is awesome). Plus it's really simple to learn - syntax wise. I also loved scraping with py (BeatifulSoup etc..).
However, since this is IM forum, i guess you do some IM stuff and PHP can be very useful for this.
 
Python is way more helpful, you can do a lot more scripting, and you could build a website if you wanted to with Python
 
python is easy AF if u learned php you can pass to python in literally 1 month you will master python if you can do some php just English sentences
 
If its a job you are looking for, there are more php jobs out there than python. What you shuould learn depends on what you want to build.
 
Man thats crazy. I have the same question going in my head for couple of days. And right now I decided to start from pyhton, because all the wasy leads to python!
Also if there is someone who have some tutorials about pyhton in Udemy, will be much appreciated to share with us it, or add to downloads!

Cheers buddys!
 
Don't bother learning these ones in 2019,
https://www.zdnet.com/article/programming-languages-dont-bother-learning-these-ones-in-2019/


Programming languages: Developers reveal most loved, most loathed, what pays best,
The most widely dreaded language is Visual Basic for Applications (VBA), followed by Objective-C, C, PHP, Erlang, Ruby, R, C++, and Java.

Python, which is shaping up as one of the most popular languages, is also the "most wanted" language for the third year running, according to Stack Overflow's results.
https://www.zdnet.com/article/progr...eveal-most-loved-most-loathed-what-pays-best/

Learn Python,
https://www.learnpython.org
 
Python is much easier. It is relatively new and has enormous library support.
Being relatively new isn't an advantage. It is rather a disadvantage (i did not check the dates.. just going by your logic), because this means that the language has not been in the market for long enough to be really tested, especially in the enterprise level.

As for being easier.. I disagree with what you said. Python is no more/less easier than php. Both are pretty much the same; both syntactically (okay, you can get me here.. python's inbuilt methods are much more "expected" unlike php.. where you call strpos, but you call str_replace.. but then, if you use a framework.. it is not really a problem. They fix those incosistancies for you. If you need an example, try yii framework.. it is freakin flawless. ;) ) and documentation wise.

Also, both of these languages have enormous library support lol. So, your reasoning I believe is flawed. ;)
 
Last edited by a moderator:
For general web design php are ok but for advanced level programming python mandatory.
 
We have 4 free upgrades available throughout the weekend!

Depends imo. For things like scraping, data manipulation, deep learning etc.. python is better. For web development, php is better (simply because wordpress and drupal.. you pay less for hiring a dev.. otherwise.. both are same).


Security wise, python is better because it is less popular as a website script choice (again, because of wp and drupal). So, there's less chance of getting hacked because you left some footprint and didn't patch the vuln.

As for a career choice.. it is tough to say. I earn much more money with JavaScript than what I used to with php. I don't work as a python dev (atleast as the primary responsibility.. testing is a different thing) , so I can't speculate..

You forgot the option "both"they are both awesome!

and that resumes it all,
 
Back
Top