Home > Backend Development > PHP Tutorial > How to reference functions of other extensions in PHP extension development

How to reference functions of other extensions in PHP extension development

WBOY
Release: 2016-08-04 09:19:19
Original
1135 people have browsed it

php has many extensions, such as pdo extension, which encapsulates some operations on relational libraries. And PHP can also develop its own extensions.

So, how do you use the functions of other extensions in the extensions you develop?

For example, if you develop a dll extension yourself, some functions of the pdo extension will be used in the function. The question is how to reference the pdo functions?

Reply content:

php has many extensions, such as pdo extension, which encapsulates some operations on relational libraries. And PHP can also develop its own extensions.

So, how do you use the functions of other extensions in the extensions you develop?

For example, if you develop a dll extension yourself, some functions of the pdo extension will be used in the function. The question is how to reference the pdo functions?

I think this is unrealistic. You also know that each extension is independent of other extensions. Each extension does not affect each other. The extension only provides an interface for the php layer to call. You Extension methods can only be called at the php level. It is unwise to call other extension methods in the extension,

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template