Search code examples
phpc++php-extension

Use PHP functions in PHP extension


Can I use a PHP function such as explode() when creating an extension in C++?


Solution

  • Here it is: PHP_FUNCTION(explode) expands to zif_explode with these parameters. That's the function you should call.

    Read this for more details.