note 91558 added to language.oop5.typehinting
| From: | hanguofeng at gmail dot com | Date: | Wed, 17 Jun 2009 04:07:08 +0000 |
| Subject: | note 91558 added to language.oop5.typehinting | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156950@lists.php.net to get a copy of this message | ||
I want to know if I can to use the type hint as "the parameter must be an array and each
element is a type defined by myself",just like:
class foo_element
{}
class foo
{
function bar(/*here i want an array of foo_element*/ $elements)
}
----
Server IP: 222.73.227.205
Probable Submitter: 123.112.83.153
----
Manual Page -- http://www.php.net/manual/en/language.oop5.typehinting.php
Edit -- https://master.php.net/note/edit/91558
Del: integrated -- https://master.php.net/note/delete/91558/integrated
Del: useless -- https://master.php.net/note/delete/91558/useless
Del: bad code -- https://master.php.net/note/delete/91558/bad+code
Del: spam -- https://master.php.net/note/delete/91558/spam
Del: non-english -- https://master.php.net/note/delete/91558/non-english
Del: in docs -- https://master.php.net/note/delete/91558/in+docs
Del: other reasons-- https://master.php.net/note/delete/91558
Reject -- https://master.php.net/note/reject/91558
Search -- https://master.php.net/manage/user-notes.php