LoopRun Barcelona 2020

The ReflectionType class

(PHP 7)

Introduction

The ReflectionType class reports information about a function's return type.

Class synopsis

ReflectionType {
/* Methods */
public allowsNull ( void ) : bool
public isBuiltin ( void ) : bool
public __toString ( void ) : string
}

Table of Contents

add a note add a note

User Contributed Notes 1 note

up
1
1franck
21 days ago
For those who stumble on notice about ReflectionType::__toString() beeing deprecated, use method ReflectionType::getName() instead which is not yet documented.
To Top