note 112172 added to function.trait-exists
| From: | mr dot ryansilalahi at gmail dot com | Date: | Tue, 14 May 2013 00:30:27 +0000 |
| Subject: | note 112172 added to function.trait-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194793@lists.php.net to get a copy of this message | ||
<?php
trait common{
function shout(){
return 'hello world!';
}
}
class a{
use common;
}
class b{
use common;
}
echo (new a())->shout();
echo (new b())->shout();
----
Server IP: 69.147.83.199
Probable Submitter: 180.245.184.226
----
Manual Page -- http://php.net/manual/en/function.trait-exists.php
Edit -- https://master.php.net/note/edit/112172
Del: integrated -- https://master.php.net/note/delete/112172/integrated
Del: useless -- https://master.php.net/note/delete/112172/useless
Del: bad code -- https://master.php.net/note/delete/112172/bad+code
Del: spam -- https://master.php.net/note/delete/112172/spam
Del: non-english -- https://master.php.net/note/delete/112172/non-english
Del: in docs -- https://master.php.net/note/delete/112172/in+docs
Del: other reasons-- https://master.php.net/note/delete/112172
Reject -- https://master.php.net/note/reject/112172
Search -- https://master.php.net/manage/user-notes.php