略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: FFI

2025-02-27

外部函数接口

添加备注

用户贡献的备注 1 note

up
3
Nathaniel Sabanski
1 year ago
Quickstart from Rasmus Lerdorf's 25 years of PHP talk.

<?php
$ffi
= FFI::cdef(
"int printf(const char *format, ...);",
"libc.so.6");
$ffi->printf("Hello %s!\n", "world");
?>

Requires ffi.enable=1

官方地址:https://www.php.net/manual/en/book.ffi.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3