Re: Return type hints
| From: | Arvids Godjuks | Date: | Wed, 16 Apr 2008 06:49:04 +0000 |
| Subject: | Re: Return type hints | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37034@lists.php.net to get a copy of this message | ||
2008/4/15, Felipe Pena <felipensp@gmail.com>:
>
> Em Ter, 2008-04-15 às 01:05 -0400, Sam Barrow escreveu:
>
> > If somebody does have a patch for this or is working on one let me know.
> Whether this will be implemented or not I would like to assist with this
> patch so I can use it for personal use at the very least.
>
>
> I already made two separated patches for param. and return value type
> hints. I'll create a new thread and start discussion ASAP.
>
> --
> Regards,
>
> Felipe Pena.
That's a simple function given. What if you need to use id many times. Then
your function will start with $id = (int)$id; or settype('int', $id);