Use PHP functions in a PHP extension

Is it possible to use a PHP function, such as explode()when creating an extension in C ++?

+3
source share
2 answers

Here it is : PHP_FUNCTION(explode)expanding to zif_explodeusing these options . This is a feature you should name.

Read this for more details.

+3
source

PHP functions are usually implemented as parameter type checks, followed by a call to their own function, usually with the same name, with a prefix php_.

, explode php_explode, php_explode_negative_limit ( ).

, <ext/standard/php_standard.h>.

PHP .

+2

Source: https://habr.com/ru/post/1790586/


All Articles