Jochem Maas wrote:
because intval("elephant") == 0;Clancy schreef:While PHP has a lot of nice features, it also has some traps which I am forever falling into. One which I find particularly hard to understand is how mixed mode comparisons work. For instance intval will convert the string into integer , Strings will most likely return 0 although this depends on the leftmost characters of the string. --
|
- [PHP] How can an elephant count for nothing? Clancy
- Re: [PHP] How can an elephant count for nothing? Per Jessen
- Re: [PHP] How can an elephant count for nothing? Jochem Maas
- Re: [PHP] How can an elephant count for nothing... 惠新宸
- Re: [PHP] How can an elephant count for nothing? Dotan Cohen
- Re: [PHP] How can an elephant count for nothing... Ashley Sheridan
- Re: [PHP] How can an elephant count for nothing? Virgilio Quilario

:laruence
