在线文档教程
PHP
反射 | Reflection

ReflectionParameter::isArray

ReflectionParameter::isArray

(PHP 5 >= 5.1.0, PHP 7)

ReflectionParameter::isArray — Checks if parameter expects an array

Description

public bool ReflectionParameter::isArray ( void )

Checks if the parameter expects an array.

Parameters

This function has no parameters.

Return Values

TRUE if an array is expected, FALSE otherwise.

See Also

  • ReflectionParameter::isOptional() - Checks if optional

← ReflectionParameter::hasType

ReflectionParameter::isCallable →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/reflectionparameter.isarray.php