PHP

How to print the line number using __LINE__ magic constant in PHP | PHP programs

How to print the line number using __LINE__ magic constant in PHP | PHP programs

How to print the line number using __LINE__ magic constant in PHP | PHP programs

We will print the line number using the __LINE__ magic constant

<?php


print ("Line : " . __LINE__ . "<br>");
print ("Line : " . __LINE__ . "<br>");
print ("Line : " . __LINE__ . "<br>");
print ("Line : " . __LINE__ . "<br>");


?>
TutorialsLink Curator

This is an official account managed by the team TutorialsLink Community