PHP: Hypertext Preprocessor (original) (raw)

ReflectionClass::__toString

(PHP 5, PHP 7, PHP 8)

ReflectionClass::__toString — Returns the string representation of the ReflectionClass object

Description

public ReflectionClass::__toString(): string

Parameters

This function has no parameters.

Examples

Example #1 ReflectionClass::__toString() example

<?php $reflectionClass = new ReflectionClass('Exception'); echo $reflectionClass->__toString(); ?>

The above example will output:

Class [ internal:Core class Exception ] {

} }

Found A Problem?

There are no user contributed notes for this page.