好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

PHP怎么定义拓展函数

在PHP中可以通过“zend_module_entry”定义Extension name来编写“PHP_FUNCTION”函数即拓展函数。

PHP 拓展初始化

初始化拓展

$ php /php-src/ext/ext_skel.php --ext

定义拓展函数

zend_module_entry 定义 Extension name 编写 PHP_FUNCTION 函数

编译安装

$ phpize $ ./configure $ make && make install

更多相关知识,请访问PHP中文网!

以上就是PHP怎么定义拓展函数的详细内容!

查看更多关于PHP怎么定义拓展函数的详细内容...

  阅读:40次