From: "Monty" <[EMAIL PROTECTED]>

>     $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...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to