note 91558 rejected from language.oop5.typehinting by danbrown
| From: | danbrown@php.net | Date: | Wed, 17 Jun 2009 12:11:08 +0000 |
| Subject: | note 91558 rejected from language.oop5.typehinting by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156966@lists.php.net to get a copy of this message | ||
Note Submitter: hanguofeng at gmail dot com
----
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)
}