# question on function declarations

- Thread: https://externals.io/message/10176
- Original archive: https://news-web.php.net/php.internals/10176
- Started by ahti on 2004-05-29T21:47:38+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10176 — ahti — 2004-05-29T21:47:38+00:00

URL: https://externals.io/message/10176#10176

hello!
i really don't know if this is the right place to post this kind of question, but it seems to be quite close.

why can't i use C-like variable conversions in php's function declaration, eg. function myfunction($var1, (int)$var2, (bool)$var3=0) ?

-----------------------------------------
ITV - Sinu lemmiksaated internetis! 
http://www.itv.ee

---

## #10178 — Jeremy Johnstone — 2004-05-30T07:18:13+00:00

URL: https://externals.io/message/10176#10178 · In reply to: #10176

Nope, this isn't the correct place. Try php-general@lists.php.net.

-Jeremy


> hello!
> i really don't know if this is the right place to post this kind of
> question, but it seems to be quite close.
>
> why can't i use C-like variable conversions in php's function declaration,
> eg. function myfunction($var1, (int)$var2, (bool)$var3=0) ?
>
> -----------------------------------------
> ITV - Sinu lemmiksaated internetis!
> http://www.itv.ee
