(PHP 5, PHP 7)
Exception::getLine — ��ȡ�������쳣�����ļ��е��к�
���ط����쳣�Ĵ������ļ��е��кš�
�˺���û�в�����
���ط����쳣�Ĵ������ļ��е��кš�
Example #1 Exception::getLine()ʾ��
<?php
try {
throw new Exception("Some error message");
} catch(Exception $e) {
echo "The exception was thrown on line: " . $e->getLine();
}
?>
�������̵���������ڣ�
The exception was thrown on line: 3