array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'ffi.type.php', 1 => 'FFI::type', ), 'up' => array ( 0 => 'class.ffi.php', 1 => 'FFI', ), 'prev' => array ( 0 => 'ffi.string.php', 1 => 'FFI::string', ), 'next' => array ( 0 => 'ffi.typeof.php', 1 => 'FFI::typeof', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ffi/ffi/type.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.4.0, PHP 8)
FFI::type — Creates an FFI\CType object from a C declaration
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.
Version | Description |
---|---|
8.3.0 | Calling FFI::type() statically is now deprecated. |