(PHP 5, PHP 7, PHP 8)
ReflectionClass::getEndLine — 獲取最后一行的行數
從用戶(hù)定義的類(lèi)獲取其最后一行的行數。
此函數沒(méi)有參數。
返回用戶(hù)定義的類(lèi)最后一行的行數,如果未知則返回 false
。
示例 #1 ReflectionClass::getEndLine() 例子
<?php
// Test Class
class TestClass { }
$rc = new ReflectionClass('TestClass');
echo $rc->getEndLine();
?>
以上例程會(huì )輸出:
3