- Forums
- PHP
- How To Get Line Numer Of The File In Php Script Code
This Page Contains information about How To Get Line Numer Of The File In Php Script Code By uub in category PHP with 2 Replies. [1140], Last Updated: Sat May 18, 2024
uub
Wed Mar 26, 2008
2 Comments
2252 Visits
for the longest time i wanted to know how i can get the line number in my script.
well, i found out how to do it,
just use the __LINE__ in php
for example
1 > <?php
2 > echo "hi this is on line number ";
3 > echo __LINE__;
4 > ?>
the output will be like this:
hi this is on line number 3
i hope i helped you in showing or getting the current line number form the php code in a script. i had a hard time finding this, but finally i found out how i can display it or show it on my hmtl code.
hope this helps
ps. thanks for the help at the support team at www.webune.com for helping me with this
https://www.wallpaperama.com/forums/how-to-get-line-numer-in-php-script-t5880.html