array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'ffi-ctype.getfuncparametertype.php', 1 => 'FFI\\CType::getFuncParameterType', 2 => 'Retrieve the type of a function parameter', ), 'up' => array ( 0 => 'class.ffi-ctype.php', 1 => 'FFI\\CType', ), 'prev' => array ( 0 => 'ffi-ctype.getfuncparametercount.php', 1 => 'FFI\\CType::getFuncParameterCount', ), 'next' => array ( 0 => 'ffi-ctype.getfuncreturntype.php', 1 => 'FFI\\CType::getFuncReturnType', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ffi/ctype/getfuncparametertype.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

FFI\CType::getFuncParameterType

(PHP 8 >= 8.1.0)

FFI\CType::getFuncParameterTypeRetrieve the type of a function parameter

说明

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

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

参数

index

Index of the function parameter, zero-based.

返回值

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.