phpday 2027 - Call for Papers

ReflectionMethod::export

(PHP 5, PHP 7)

ReflectionMethod::export — Export a reflection method

Avviso

Questa funzione è stata DEPRECATA a partire da PHP 7.4.0 e RIMOSSA a partire da PHP 8.0.0. Fare affidamento su questa funzione è altamente sconsigliato.

Descrizione

public static function ReflectionMethod::export(string $class, string $name, bool $return = false): string

Exports a ReflectionMethod.

Elenco dei parametri

class

The class name.

name

The name of the method.

return

Impostandolo a true l'esportazione verrà restituita, invece di essere emessa. Impostandolo a false (il valore predefinito) si otterrà il contrario.

Valori restituiti

Se il parametro return è impostato a true, l'esportazione viene restituita come string, altrimenti viene restituito null.

Log delle modifiche

Versione Descrizione
8.0.0 Questa funzione è stata rimossa.
7.4.0 Questa funzione è stata deprecata.

Vedere anche:

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top