ReflectionClass
PHP 手册

ReflectionClass::getEndLine

(PHP 5)

ReflectionClass::getEndLineGets end line

说明

public int ReflectionClass::getEndLine ( void )

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

参数

This function has no parameters.

返回值

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 手册