__LINE__
` magic constant to print the current line number :<?php
echo "The current line number is " . __LINE__ . ".\n";
echo "This is on line " . __LINE__ . ".\n";
?>
The current line number is 2.
This is on line 3.
__LINE__
` constant is replaced with the current line number at runtime.