PHP 7.4.0RC2 Released!

FFI::type

(PHP 7 >= 7.4.0)

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

Beschreibung

public static FFI::type ( mixed $type ) : FFI\CType
public FFI::type ( mixed $type ) : FFI\CType

This function creates and returns a FFI\CType object for the given string containing a C type declaration. If this method is called statically, it must only use predefined C type names (e.g. int, char, etc.); if the method is called as instance method, any type declared for the instance is allowed.

Parameter-Liste

type

A valid C declaration as string, or an instance of FFI\CType which has already been created.

R├╝ckgabewerte

Returns the freshly created FFI\CType object.

add a note add a note

User Contributed Notes

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