Hi internals, I'd like to propose opening an rfc to make the following syntax legal:
foreach($array as (int) $i) {}
Which would be functionally equivalent to
foreach($array as $i) {
$i=(int) $i;
}
Thoughts? Feedback?
~C
Hi internals, I'd like to propose opening an rfc to make the following syntax legal:
foreach($array as (int) $i) {}
Which would be functionally equivalent to
foreach($array as $i) {
$i=(int) $i;
}
Thoughts? Feedback?
~C