Dutch PHP Conference 2025 - Call For Papers

ReflectionClass::getEndLine

(PHP 5, PHP 7, PHP 8)

ReflectionClass::getEndLineGets end line

Опис

public ReflectionClass::getEndLine(): int|false

Gets end line number from a user-defined class definition.

Параметри

У цієї функції немає параметрів.

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

The ending line number of the user defined class, or false if unknown.

Приклади

Приклад #1 ReflectionClass::getEndLine() example

<?php
// Test Class
class TestClass { }

$rc = new ReflectionClass('TestClass');

echo
$rc->getEndLine();
?>

Поданий вище приклад виведе:

3

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

add a note

User Contributed Notes

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