ReflectionFunction::export

(PHP 5, PHP 7)

ReflectionFunction::exportExports function

警告

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

說明

public static ReflectionFunction::export(string $name, string $return = ?): string

Exports a Reflected function.

參數(shù)

name

導(dǎo)出的反射。

return

設(shè)為 true 時(shí)返回導(dǎo)出結(jié)果,設(shè)為 false(默認(rèn)值)則忽略返回。

返回值

如果參數(shù) return 設(shè)為 true,導(dǎo)出結(jié)果將作為 string 返回,否則返回 null

參見