Help!!!
Is there a function or way a in php to display the line number of the current or last code or statement being executed aside from having an error???
display the line number of the statement being executed
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
I'm a little confused by what you're asking? You can use __LINE__ to tell you what line you're on, e.g.:
outputs:
Mac
Code: Select all
<?php
echo 'I am curently on line '.__LINE__;
echo '<br />';
echo 'Now I am on line '.__LINE__;
?>Code: Select all
I am curently on line 2
Now I am on line 8- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK