(PHP 5, PHP 7, PHP 8)
ReflectionClass::getEndLine — Gets end line
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 Classclass TestClass { }$rc = new ReflectionClass('TestClass');echo $rc->getEndLine();?>
The above example will output:
3