(PHP 7 >= 7.4.0, PHP 8)
FFI::new — Creates a C data structure
Creates a native data structure of the given C type. Any type declared for the instance is allowed.
typetype is a valid C declaration as string, or an instance of FFI\CType which has already been created.ownedpersistent| Version | Description |
|---|---|
| 8.3.0 | Calling FFI::new() statically is now deprecated. |