? Throwable::getFile
Throwable::getTrace ?
Bejson.com
PHP Manual
Throwable
獲取初始化對象時(shí)候的行號
Throwable::getLine
(PHP 7, PHP 8)
Throwable::getLine
—
獲取初始化對象時(shí)候的行號
說明
public
Throwable::getLine
():
int
返回初始化 throwable 時(shí)的行號。
參數(shù)
此函數(shù)沒有參數(shù)。
返回值
返回初始化 throwable 時(shí)的行號。
參見
Exception::getLine()
- 獲取創(chuàng)建的異常所在文件中的行號