I ran into this about 6 months ago in some code I was working on. I think that calling intval()
on any non-empty string should return 1, not 0. Of course, the number of programming languages I’ve written is intval('none')
.
I ran into this about 6 months ago in some code I was working on. I think that calling intval()
on any non-empty string should return 1, not 0. Of course, the number of programming languages I’ve written is intval('none')
.