note 74676 added to functions.arguments
| From: | conciseusa at yahoo | Date: | Mon, 23 Apr 2007 03:03:49 +0000 |
| Subject: | note 74676 added to functions.arguments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125784@lists.php.net to get a copy of this message | ||
With regards to:
It is also possible to force a parameter type using this syntax. I couldn't see it in the
documentation.
function foo(myclass par) { }
I think you are referring to Type Hinting. It is documented here: http://ch2.php.net/language.oop5.typehinting
----
Server IP: 69.147.83.197
Probable Submitter: 76.170.191.251
----
Manual Page -- http://www.php.net/manual/en/functions.arguments.php
Edit -- https://master.php.net/note/edit/74676
Del: integrated -- https://master.php.net/note/delete/74676/integrated
Del: useless -- https://master.php.net/note/delete/74676/useless
Del: bad code -- https://master.php.net/note/delete/74676/bad+code
Del: spam -- https://master.php.net/note/delete/74676/spam
Del: non-english -- https://master.php.net/note/delete/74676/non-english
Del: in docs -- https://master.php.net/note/delete/74676/in+docs
Del: other reasons-- https://master.php.net/note/delete/74676
Reject -- https://master.php.net/note/reject/74676
Search -- https://master.php.net/manage/user-notes.php