ReflectionClass
PHP Manual

ReflectionClass::getEndLine

(PHP 5)

ReflectionClass::getEndLineGets end line

说明

public int ReflectionClass::getEndLine ( void )

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

参数

此函数没有参数。

返回值

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

范例

Example #1 ReflectionClass::getEndLine() example

<?php
// Test Class
class TestClass { }

$rc = new ReflectionClass('TestClass');

echo 
$rc->getEndLine();
?>

以上例程会输出:

3

参见


ReflectionClass
PHP Manual