PHP 8.4.0 RC4 available for testing

FFI::type

(PHP 7 >= 7.4.0, PHP 8)

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

Açıklama

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.

Bağımsız Değişkenler

type

A valid C declaration as string.

Dönen Değerler

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

Sürüm Bilgisi

Sürüm: Açıklama
8.3.0 Calling FFI::type() statically is now deprecated.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top