in Education by
I'm just curious if any project exists that attempts to group all (or most) of PHP's built-in functions into a more object-oriented class hierarchy. For example, grouping all the string functions into a single String class, etc. I realize this won't actually solve any problems (unless the modifications took place at the PHP source code level), since all the built-in functions would still be accessible in the global namespace, but it would certainly make usability much easier. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Way too many times. As soon as someone discovers that PHP has OO features they want to wrap everything in classes. The point to the OO stuff in PHP is so that you can architect your solutions in whichever way you want. But wrapping the existing functions in Objects doesn't yield much payoff. That being said PHP's core is quite object oriented already. Take a look at SPL.

Related questions

0 votes
    I'm trying to follow PEP 328, with the following directory structure: pkg/ __init__.py components/ Core.py __init__ ... m missing here? Select the correct answer from above options...
asked Jan 28, 2022 in Education by JackTerrance
0 votes
    I'm learning OpenGL ES for android, but i'm a tiny bit confused. In the examples I've seen the ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    Hessian is a custom binary serialization protocol, (which is open-source - I think), that forms the basis ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    We have a SQUID reverse proxy and a MOSS 2007 portal. All sites are using NTLM. We cannot get it ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    Hey guys . anyone in class 11 CBSE My Comp. Sci. paper is on monday if anyone has Question paper plzzz send ... .plzzzz..zz .zzzz . Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Functional programming language cannot be an object oriented language too 1. True 2. False...
asked Mar 7, 2023 in Technology by JackTerrance
0 votes
    What is Object-Oriented Programming?...
asked Feb 8, 2023 in Technology by JackTerrance
0 votes
    By default Spring framework creates all the beans as singletons. Isn't this contradicting with basic Object ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    What is the potential abuse of object oriented design araises? Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    What is structure analysis briefly explain how the inheritance feature of object oriented programming helps in code reuse? Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    ___________ is an Object Oriented database. (1)RDBMS (2)NoSQL...
asked Apr 23, 2021 in Technology by JackTerrance
0 votes
    Is Swift an object-oriented programming language?...
asked Nov 30, 2020 in Technology by JackTerrance
...