How To Get Line Numer In Php Script



How To Get Line Numer In Php Script
 (382) Find work at Home Jobs
How To Get Line Numer In Php Script
Post Description:
Post Tags: how, to, get, line, numer, in, php, script
This Post Has Been Viewed 209 Times Since Wed Mar 26, 2008 8:30 am Posted By uub with 0 replies
How To Get Line Numer In Php Script
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


Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About How To Get Line Numer In Php Script




(0) Comments