Which one is the best? Php vs python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Which one is the best? Php vs python

14th Aug 2018, 11:40 AM
Muhammad Haaris
Muhammad Haaris - avatar
3 Answers
+ 25
I think python
14th Aug 2018, 12:12 PM
Arpit Mittal
Arpit Mittal - avatar
+ 2
Because. 1. Python has a philosophy that helps to write better for understanding code. 2. Language evolution planning using PEPs - you know what you get in a next few years. PHP development process looks chaotic: making OOP like a something in Java, then add some "static typing" collections, then include some lambdas and namespaces (almost after 15 years of development). What's next? 3. Python has more compact and clean syntax that helps developers, 4. In Python the same things can be done the same way. There is no matter what iterable things you using (list, tuple, stringĀ  or something else) you always can access by index, get a slice, iterateĀ  over it or get the length the same way. No strlen()/count(), substr()Ā  and a lot of other functions. 5. More predictable and strict. No 1 == "1" and other strange things like in PHP. 6. Python has more unified and powerful standard library. It has some problems, but python's included library much better than PHP's.
14th Aug 2018, 11:42 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
what you think. php or python??
14th Aug 2018, 11:43 AM
Muhammad Haaris
Muhammad Haaris - avatar