php8.5
Home/ Manual/ reflection / reflectionclass/ ReflectionClass::getStartLine

ReflectionClass::getStartLine

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Gets starting line number

Description

ReflectionClass::getStartLine(): int|false

Get the starting line number.

Parameters Parameters

Return Values

The starting line number, as an int, or false if unknown.

See Also

  • ReflectionClass::getEndLine

Source: reference/reflection/reflectionclass/getstartline.xml · from the official PHP manual (php/doc-en)