略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: FFI::type

2025-02-27

FFI::type

(PHP 7 >= 7.4.0, PHP 8)

FFI::typeCreates an FFI\CType object from a C declaration

说明

public FFI::type(string $type): ?FFI\CType

This function creates and returns a FFI\CType object for the given string containing a C type declaration. Any type declared for the instance is allowed.

参数

type

A valid C declaration as string.

返回值

Returns the freshly created FFI\CType object, or null on failure.

更新日志

版本 说明
8.3.0 Calling FFI::type() statically is now deprecated.
添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

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

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