Returns the string representation of the Reflection method object

# ReflectionMethod::__toString

(PHP 5, PHP 7)

ReflectionMethod::__toString — Returns the string representation of the Reflection method object

### Descrierea

public ReflectionMethod::__toString ( void ) : string

Returns the string representation of the Reflection method object.

### Parametri

Această funcție nu are parametri.

### Valorile întoarse

A string representation of this ReflectionMethod instance.

### Exemple

Example #1 ReflectionMethod::__toString() example

`<?php
class HelloWorld {
public function sayHelloTo($name) {
return 'Hello ' . $name;
}
}
$reflectionMethod = new ReflectionMethod(new HelloWorld(), 'sayHelloTo');
echo $reflectionMethod;
?>`

Exemplul de mai sus va afișa:

    Method [ <user> public method sayHelloTo ] {
      @@ /var/www/examples/reflection.php 16 - 18

      - Parameters [1] {
        Parameter #0 [ <required> $name ]
      }
    }

### A se vedea și

- ReflectionMethod::export() - Export a reflection method
- __toString()