4 ms·
But the forced cast to integer is always guaranteed to result in an integer. So why would it make more sense to explicitly force cast a variable's type to an in
by Y-bar 4y ago
But the forced cast to integer is always guaranteed to result in an integer. So why would it make more sense to explicitly force cast a variable's type to an integer and get a boolean as the functions return value?
Edit:
> (int)$val === false
Would always be false because comparing two types, an integer and boolean would always be false.