來自 Rasmus Lerdorf 25 年 PHP 演講的快速入門。
<?php
$ffi = FFI::cdef(
"int printf(const char *format, ...);",
"libc.so.6");
$ffi->printf("Hello %s!\n", "world");
?>
需要 ffi.enable=1
來自 Rasmus Lerdorf 25 年 PHP 演講的快速入門。
<?php
$ffi = FFI::cdef(
"int printf(const char *format, ...);",
"libc.so.6");
$ffi->printf("Hello %s!\n", "world");
?>
需要 ffi.enable=1