note 121899 added to intro.reflection

From: Date: Wed, 22 Nov 2017 12:29:14 +0000
Subject: note 121899 added to intro.reflection
Groups: php.notes 
Request: Send a blank email to php-notes+get-209195@lists.php.net to get a copy of this message
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; ---- Server IP: 208.43.231.9 Probable Submitter: 182.74.201.50 ---- Manual Page -- http://php.net/manual/en/intro.reflection.php Edit -- https://master.php.net/note/edit/121899 Del: integrated -- https://master.php.net/note/delete/121899/integrated Del: useless -- https://master.php.net/note/delete/121899/useless Del: bad code -- https://master.php.net/note/delete/121899/bad+code Del: spam -- https://master.php.net/note/delete/121899/spam Del: non-english -- https://master.php.net/note/delete/121899/non-english Del: in docs -- https://master.php.net/note/delete/121899/in+docs Del: other reasons-- https://master.php.net/note/delete/121899 Reject -- https://master.php.net/note/reject/121899 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209195) next »