Dutch PHP Conference 2025 - Call For Papers

ReflectionExtension::export

(PHP 5, PHP 7)

ReflectionExtension::exportExport

Увага

Ця функція ЗАСТАРІЛА, починаючи з PHP 7.4.0, та ВИЛУЧЕНА в PHP 8.0.0. Вкрай не рекомендується на неї покладатися.

Опис

public static ReflectionExtension::export(string $name, string $return = false): string

Exports a reflected extension. The output format of this function is the same as the CLI argument --re [extension].

Параметри

name

Об'єкт Reflection, що експортується.

return

Якщо задано true, результат буде повернено, а якщо false (початково), то результат буде виведено.

Значення, що повертаються

Якщо параметр return дорівнює true, то то повернеться рядок (string), а інакше — null.

Прогляньте також

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top