4 ms·
It's been a long time since I've worked with PHP, I assume $sum += (int) $i; will still convert to float once the size of $sum gets to the requisite size?
by pc86 13y ago
It's been a long time since I've worked with PHP, I assume
$sum += (int) $i;
will still convert to float once the size of $sum gets to the requisite size?
- ars 13y agoYes. fooyc explained it correctly. ck2 did not.
- radiospiel 13y agoOne of the reasons to stay away from PHP. Requesting and int but getting a float regardless? That doesn't sit well w/me.