note 92491 deleted from function.get-called-class by danbrown

From: Date: Fri, 08 Jun 2012 20:18:48 +0000
Subject: note 92491 deleted from function.get-called-class by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188495@lists.php.net to get a copy of this message
Note Submitter: aashley at php dot net ---- Small change to spidgorny at gmail dot com's example so that it works with static calls as well. Change: } while ($matches[1] == 'parent' && $matches[1]); to: } while( in_array($matches[1], array('parent', 'self')) && $matches[1]);

« previous php.notes (#188495) next »