note 119507 deleted from keyword.class by cmb
| From: | cmb@php.net | Date: | Fri, 24 Jun 2016 10:12:00 +0000 |
| Subject: | note 119507 deleted from keyword.class by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-205806@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Get the class name of the class which is initializing another class
<?php
class A {
function foo(){}
}
class B {
function bar(){
$a = new A();
}
}
Now in the above example A is initialized in B, my question is how to get the name of the class in
which it is initialized?