Can i use only functional programming with php? | Sololearn: Learn to code for FREE!
+ 5

Can i use only functional programming with php?

28th Jan 2019, 12:13 PM
CaStill0~Dz 🇩🇿
CaStill0~Dz 🇩🇿 - avatar
2 Answers
+ 12
Of course you can. But I would say it is a bad practice since PHP supports OOP. Personally, I hate to work with PHP scripts that use functional programming. They look like a mess. Object oriented scripts are more organized, easy to read and scale.
30th Jan 2019, 11:29 PM
Igor Makarsky
Igor Makarsky - avatar
+ 1
Yes, Of course, PHP supports both object-oriented programming and procedural programming.
2nd Feb 2019, 7:11 AM
Afzal Mulla
Afzal Mulla - avatar