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

參見

add a note add a note

User Contributed Notes

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