php8.5
Home/ Manual/ ffi / ctype/ FFI\CType::getFuncParameterType

FFI\CType::getFuncParameterType

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.0)

Retrieve the type of a function parameter

Description

FFI\CType::getFuncParameterType(int $index): FFI\CType

Returns the type of a parameter for the underlying function type.

Parameters

index

Index of the function parameter, zero-based.

Return Values

Returns the type of a parameter for the underlying function type. If the underlying type is not a function, or the given index is outside of the range of parameters of the function, an FFI\Exception is thrown.

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