Re: is_numeric_string an hexadecimal numbers ("123" == "0x7B")

From: Date: Tue, 17 Apr 2012 11:35:48 +0000
Subject: Re: is_numeric_string an hexadecimal numbers ("123" == "0x7B")
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-60073@lists.php.net to get a copy of this message
2012/4/17 Nikita Popov <nikita.ppv@googlemail.com> > > var_dump('123' == '0x7b'); // true > > In all other parts of the engine hexadecimal strings are not recognized > [3]: > > var_dump((int) '0x7b'); // int(0) > Hi, Nikita I personally would rather change the type-conversion for strings to integer ... At least if you force it to do a type-cast (in other words: forcing to get any valuable integer of that string) ... Bye Simon

« previous php.internals (#60073) next »