Well, I wonder HOW to make an explode() function from PHP in C++
For those who don't know.
explode($separator, $string) breaks given $string through given $separator
for example:
$string = "Hello world!";
$result = explode(" ", $string);
echo $result[0]; //IT will give us HELLO word
echo $result[1]; //IT will give us WORLD! word
Each word is put into the array and has own index.
now... have someone any idea how to make it in C++ ?
Do not show any examples from this forum.
I already saw all and all are bad (doesn't match to the requirements)