Wo0tHigh Posted April 18, 2008 Share Posted April 18, 2008 Hi Im sure there is a PHP function which returns which line it is on, but I cant find it, wonder if you guys knew what it was (if it exists) thanks in advance! Dan Quote Link to comment https://forums.phpfreaks.com/topic/101666-php-line-function/ Share on other sites More sharing options...
Daniel0 Posted April 18, 2008 Share Posted April 18, 2008 There is a constant which does it: __LINE__ http://php.net/manual/en/language.constants.predefined.php Quote Link to comment https://forums.phpfreaks.com/topic/101666-php-line-function/#findComment-520224 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.