Jared Farrish wrote:
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?
No, but maybe worth suggesting to the internals list for 6. I'd
certainly like to see it.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php