Re: [PHP-DEV] Re: Bug #13304 Updated: string comparisons not working as expected

2001-09-15 Thread Andi Gutmans
You should use strcmp() Andi At 11:20 AM 9/14/2001 -0700, Chris Lee wrote: >your right === does work, I still feel that the internal auto-conversion >should recognize that the string is to long to be an int and treat both as a >sting. how would you force an if statement to use typecasting ? > >i

[PHP-DEV] Re: Bug #13304 Updated: string comparisons not working as expected

2001-09-14 Thread Chris Lee
your right === does work, I still feel that the internal auto-conversion should recognize that the string is to long to be an int and treat both as a sting. how would you force an if statement to use typecasting ? ie. if ( '12.00' == '12' ) will equal as true, but maybe I want it to be compared