有没有像Python的CTYPE PHP的东西吗?访问库,而无需编写扩展? [英] Is there anything like Python's ctype for PHP? Accessing libraries without the need to write an extension?

查看:191
本文介绍了有没有像Python的CTYPE PHP的东西吗?访问库,而无需编写扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python有 ctypes的访问库。在PHP你写的一切扩展。像一个的libgd流行的扩展可几乎无处不在。

Python has ctypes to access libraries. In PHP you write extensions for everything. Popular extensions like the one for libgd are available almost everywhere.

有其工作方式类似于Python的ctypes的,让你访问的库,而不需要写一个PHP扩展的扩展?

Is there any extension which works like Python's ctypes, letting you access libraries without the need to write an PHP extension?

推荐答案

我不知道任何方式。但是你可以让痛饮打造你想要的库的扩展。

I don't know of any way. But you could let SWIG build an extension for the library you want.

这篇关于有没有像Python的CTYPE PHP的东西吗?访问库,而无需编写扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆