note 11877 added to function.decbin.php
| From: | nospam dot me at padamj dot com | Date: | Sun, 11 Mar 2001 10:56:23 +0000 |
| Subject: | note 11877 added to function.decbin.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12269@lists.php.net to get a copy of this message | ||
do this to pad the binary:
str_pad(decbin($dec),3,"0",STR_PAD_LEFT);
output like:
001
010
http://www.php.net/manual/en/function.decbin.php