Help with typecasting by default in the function parameter list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is this legal? Note where the typecasting occurs: In the function parameter
list, before the variable.

<code>
function doSomething( (int) $int1, (int) $int2 ) {
   //blah blah
}
</code>

This would take the place of:

<code>
function doSomething($int1, $int2) {
   $int1 = (int) $int1;
   $int2 = (int) $int2;
}
</code>

Is this possible?

--
Jared Farrish
Intermediate Web Developer
Denton, Tx

Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux