Why all PHP Functions for (Array , String , Database etc. handling) arent True OOP Methods. We can just call them like 'static' methods anywhere. PHP5 and PHP6 advertise themselves as True OOP Languages , but what about Encapsulation then ? I think In a proper World all Array methods should belong to Array Class and String Methods should belong to String Class and so on ... like in Java and Ruby and other OOP Languages.
I love and know by heart nearly 100-200 of these functions and they are just so powerful. But why advertise as OOP Language when PHP Creators didnt took even Basic 'Encapsulation' into Design while creating the Language ? Let it be 'Hybrid Language' or something else. Haskell and LISP are popular in their fields and are termed as 'Functional Languages'.
So , Why stick to OOP 'Term' ?
Just name it like this ,
"PHP is a Hybrid Programming Language designed for Server Side Scripting." :)
Cheers! Rohit Chauhan