note 121899 rejected from intro.reflection by cmb
| From: | cmb@php.net | Date: | Wed, 22 Nov 2017 13:10:05 +0000 |
| Subject: | note 121899 rejected from intro.reflection by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209196@lists.php.net to get a copy of this message | ||
Note Submitter: Juzer Ali
----
Apart from Reflection API, is variable variables syntax also a reflective technique? For example,
following code snippet is not using Reflection API, but would it still qualify as an example of
reflection since we can instantiate a class dynamically based on input parameters?
<?php
$className = 'Animal';
$animal = new $className;