PhpRiot
Follow phpriot on Twitter
Sponsored Link
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

The ReflectionParameter class

Introduction

The ReflectionParameter class retrieves information about a function's or method's parameters.

To introspect function parameters, first create an instance of the ReflectionFunction or ReflectionMethod classes and then use their ReflectionFunctionAbstract::getParameters method to retrieve an array of parameters.

Class synopsis

ReflectionParameter implements Reflector {
/* Properties */
/* Methods */
public bool ReflectionParameter::allowsNull ( void )
final private void ReflectionParameter::__clone ( void )
ReflectionParameter::__construct ( string $function , string $parameter )
public static string ReflectionParameter::export ( string $function , string $parameter [, bool $return ] )
public ReflectionClass ReflectionParameter::getClass ( void )
public ReflectionClass ReflectionParameter::getDeclaringClass ( void )
public ReflectionFunction ReflectionParameter::getDeclaringFunction ( void )
public string ReflectionParameter::getName ( void )
public bool ReflectionParameter::isArray ( void )
public bool ReflectionParameter::isOptional ( void )
public string ReflectionParameter::__toString ( void )
}

Properties

name

Prop description

Table of Contents

PHP Manual