php8.5
Home/ Manual/ ffi / ffi/ FFI::free

FFI::free

PHP function Edit on GitHub ✎

(PHP 7 >= 7.4.0, PHP 8)

Releases an unmanaged data structure

Description

FFI::free(FFI\CData $ptr): void

Manually releases a previously created unmanaged data structure.

Parameters

ptr

The handle of the unmanaged pointer to a C data structure.

Return Values

Void

Source: reference/ffi/ffi/free.xml · from the official PHP manual (php/doc-en)