Can I use a PHP function such as explode() when creating an extension in C++?
explode()
Here it is: PHP_FUNCTION(explode) expands to zif_explode with these parameters. That's the function you should call.
PHP_FUNCTION(explode)
zif_explode
Read this for more details.