Is NULL value on intval() = 0 ?
$value = NULL
$value2 = intval($value) // will be 0?
Is that correct, please let me know ?
Yes you can easy test that like this:
$value = NULL;
echo $value2 = intval($value) ;
Output:
0
Since:
The return value is the integer value of $value on success! And on failure 0.
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