No. You could pass the constant __LINE__ to your function, but I assume that you want this feature to be generically available within all functions. If you really want to be able to track your call-stack then you'd be better off using a development environment like the Zend IDE and debugger. Alternatively you could request a function to the PHP developers mailing list that would return an array containing the current call-stack. You can register your own error handler and assert handler - these guys receive the calling LINE as a parameter. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Milan Mlynarcik Sent: 28 March 2001 14:43 To: [EMAIL PROTECTED] Subject: [PHP] Is there way how to get line number from which function was called ??? Is there way how to get line number from which function was called ??? Milan Mlynarcik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]