I’m learning C++; I’m already fluent in PHP. I read up the differences between C++ and PHP. None of the articles that I read mentioned that PHP has far more built in functions than C++.
Right now, I’m trying to split a string in C++ and I found this: Split a string in C++?
In PHP, I can simply do explode($delimiter,$string)
Am I missing something? Or is it true that PHP has more built-in functions that C++.
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,
explodecan be written usingsplitandstrposinstead.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.