The question is the title alone, in PHP we can do:
var_dump((int) "!");
And receive int(0)
.
And in MySQL we can do:
SELECT campo_int FROM tabela WHERE campo_int = "!"
And if that 'campo_int'
is '0'
it returns the record.
- Why does this happen?
- Does this have any usefulness planned by language developers?