<?php
$i = 1024 * 1024 * 1024 * 1024 * 1024;
var_dump($i);
output => float(1125899906842600)
why output is a float type ?
If PHP encounter an overflow, it will cast to float.
See http://php.net/manual/en/language.types.integer.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With