note 120347 added to function.get-class

From: Date: Sat, 17 Dec 2016 01:33:50 +0000
Subject: note 120347 added to function.get-class
Groups: php.notes 
Request: Send a blank email to php-notes+get-208613@lists.php.net to get a copy of this message
well, if you call get_class() on an aliased class, you will get the original class name <?php class Person {} class_alias('Person', 'User'); $me = new User; var_dump( get_class($me) ); // 'Person' ?> ---- Server IP: 72.52.91.14 Probable Submitter: 61.6.65.214 ---- Manual Page -- http://php.net/manual/en/function.get-class.php Edit -- https://master.php.net/note/edit/120347 Del: integrated -- https://master.php.net/note/delete/120347/integrated Del: useless -- https://master.php.net/note/delete/120347/useless Del: bad code -- https://master.php.net/note/delete/120347/bad+code Del: spam -- https://master.php.net/note/delete/120347/spam Del: non-english -- https://master.php.net/note/delete/120347/non-english Del: in docs -- https://master.php.net/note/delete/120347/in+docs Del: other reasons-- https://master.php.net/note/delete/120347 Reject -- https://master.php.net/note/reject/120347 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#208613) next »