note 112086 added to function.class-uses
| From: | adam at adamhahn dot com | Date: | Tue, 30 Apr 2013 23:34:53 +0000 |
| Subject: | note 112086 added to function.class-uses | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194678@lists.php.net to get a copy of this message | ||
FYI: It is not explicitly stated, but if you run this function against a class that does not use any
traits it will return an empty array.
<?php
class iDontUseTraits {
}
class_uses('iDontUseTraits'); // Returns empty array
?>
----
Server IP: 69.147.83.199
Probable Submitter: 23.31.250.181
----
Manual Page -- http://php.net/manual/en/function.class-uses.php
Edit -- https://master.php.net/note/edit/112086
Del: integrated -- https://master.php.net/note/delete/112086/integrated
Del: useless -- https://master.php.net/note/delete/112086/useless
Del: bad code -- https://master.php.net/note/delete/112086/bad+code
Del: spam -- https://master.php.net/note/delete/112086/spam
Del: non-english -- https://master.php.net/note/delete/112086/non-english
Del: in docs -- https://master.php.net/note/delete/112086/in+docs
Del: other reasons-- https://master.php.net/note/delete/112086
Reject -- https://master.php.net/note/reject/112086
Search -- https://master.php.net/manage/user-notes.php