Permalink
Browse files

Commenting on binary numbers

  • Loading branch information...
1 parent 2cec541 commit 0d7dc2d94b928ecbc728343b4faac47dcc730639 @tomnomnom committed Nov 20, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 03-binary-numbers.php
View
10 03-binary-numbers.php
@@ -4,11 +4,11 @@
// Handy for bitmasks and things!
class Logger {
- const DEBUG = 0b0001;
- const INFO = 0b0010;
- const WARN = 0b0100;
- const ERR = 0b1000;
- const ALL = 0b1111;
+ const DEBUG = 0b0001; // 1
+ const INFO = 0b0010; // 2
+ const WARN = 0b0100; // 4
+ const ERR = 0b1000; // 8
+ const ALL = 0b1111; // 15
public function __construct($levels){
$this->levels = $levels;

0 comments on commit 0d7dc2d

Please sign in to comment.