HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Exception Reference : Throw an exception and then output the number of the line on which it was thrown
The getLine()
method returns the line number of the line of code which threw the exception.
Return Value: | Returns an integer |
---|
Read more about Exceptions in our PHP Exceptions Chapter.
❮ PHP Exception Reference