On 15-03-11 09:10 PM, Jeffry Killen wrote:
Hello; I have begun to use get_class($this) in __construct method to establish a way to construct custom error messages to be returned from member methods. Is there a similar function to get the name of the method in which the error might occur? (to save having to hard code it in every place where it might be necessary) Thanks for time and attention; JK
See __CLASS__ and __METHOD__. http://php.net/manual/en/language.constants.predefined.php Cheers, Rob. -- Phone: 613-822-9060 +++ Cell: 613-600-2836 E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php