ZEROFILL + PHP octal notation
Date: 11/11/05
(PHP Community) Keywords: php, mysql, sql
Does PHP think numbers stored in MySQL tables with ZEROFILL are octal numbers?
For example, suppose I have a column INT(4) ZEROFILL and I insert the number 346 using PHP. MySQL turns that into 0346 - which is octal notation in PHP. Is it now going to treat 0346 as an octal number in math calculations?
Source: http://www.livejournal.com/community/php/366491.html