ReflectionFunction::export

(PHP 5, PHP 7)

ReflectionFunction::exportExports function

Aviso

This function has been DEPRECATED as of PHP 7.4.0. Relying on this function is highly discouraged.

Descrição

public static ReflectionFunction::export ( string $name [, string $return ] ) : string

Exports a Reflected function.

Parâmetros

name

A reflexão para exportar.

return

Passar true irá retornar o export, em vez de emiti-lo. Passar false (padrão) fará o oposto.

Valor Retornado

Se o parâmetro return for true então o export é retornado como uma string, senão retorna null.

Veja Também