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

FFI\CType::getFuncParameterCount

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.0)

Retrieve the count of parameters of a function type

Description

FFI\CType::getFuncParameterCount(): int

Parameters Parameters

Return Values

Returns the number of parameters for the underlying function type. If the underlying type is not a function, an FFI\Exception is thrown.

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