ReflectionClass::getEndLine
(PHP 5, PHP 7)
ReflectionClass::getEndLine - 获取结束行
描述
public int ReflectionClass::getEndLine ( void )
从用户定义的类定义中获取结束行号。
参数
该函数没有参数。
返回值
用户定义的类的结束行号,或者FALSE
如果未知。
示例
示例#1 ReflectionClass::getEndLine()示例
<?php
// Test Class
class TestClass { }
$rc = new ReflectionClass('TestClass');
echo $rc->getEndLine();
?>
上面的例子将输出:
3
另请参阅
- ReflectionClass::getStartLine() - 获取起始行号
← ReflectionClass::getDocComment
ReflectionClass::getExtension →
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com