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

How to reference functions of other extensions in PHP extension development

WBOY
WBOYOriginal
2016-08-04 09:19:191114browse

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,

Statement:
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