Re: Strange Numeric Conversion...
| From: | John W. Holmes | Date: | Fri, 02 Apr 2004 21:36:57 +0000 |
| Subject: | Re: Strange Numeric Conversion... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182194@lists.php.net to get a copy of this message | ||
From: "Monty" <monty3@hotmail.com>
> $id = 000011;
> echo $id; // Displays: 9
>
> $id = 11;
> echo $id; // Displays: 11
>
> How do I make the first number (00011) display as 11? Why is it showing 9?
Number values starting with a leading zero are assumed to be octal values.
Octal 11 = Decimal 9
---John Holmes...