# FFI::type

(PHP 7 >= 7.4.0, PHP 8)

FFI::type — Creates an FFI\CType object from a C declaration

### Beschreibung

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.

### Parameter-Liste

`type`
  A valid C declaration as string.

### Rückgabewerte

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

### Changelog

Version | Beschreibung
--- | ---
8.3.0 | Calling FFI::type() statically is now deprecated.

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open