Solution:1
Both C++ and PHP have the concept of libraries which include new functions and classes..
A lot of the PHP functions are just simpler ways to do more complex things, for example, explode
can be written using split
and strpos
instead.
Same thing for C++, I find that C++ is more lean in that aspect, sure sometimes you will have to write your own explode
, or simply use some other library that someone else created.
As for which has more, I don’t think it matters, both are extensible.