(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 Class
class TestClass { }
$rc = new ReflectionClass('TestClass');
echo $rc->getEndLine();
?>
The above example will output:
3
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant