note 92491 added to function.get-called-class

From: Date: Mon, 27 Jul 2009 06:06:38 +0000
Subject: note 92491 added to function.get-called-class
Groups: php.notes 
Request: Send a blank email to php-notes+get-158767@lists.php.net to get a copy of this message
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]); ---- Server IP: 117.55.229.1 Probable Submitter: 116.212.215.218 ---- Manual Page -- http://www.php.net/manual/en/function.get-called-class.php Edit -- https://master.php.net/note/edit/92491 Del: integrated -- https://master.php.net/note/delete/92491/integrated Del: useless -- https://master.php.net/note/delete/92491/useless Del: bad code -- https://master.php.net/note/delete/92491/bad+code Del: spam -- https://master.php.net/note/delete/92491/spam Del: non-english -- https://master.php.net/note/delete/92491/non-english Del: in docs -- https://master.php.net/note/delete/92491/in+docs Del: other reasons-- https://master.php.net/note/delete/92491 Reject -- https://master.php.net/note/reject/92491 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158767) next »