[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/ -> class_bitwise.php (source)

   1  <?php
   2  /**
   3   * MyBB 1.6
   4   * Copyright 2010 MyBB Group, All Rights Reserved
   5   *
   6   * Website: http://mybb.com
   7   * License: http://mybb.com/about/license
   8   *
   9   * $Id: class_bitwise.php 5297 2010-12-28 22:01:14Z Tomm $
  10   */
  11  
  12  class bitwise
  13  {
  14  	function set($bits, $bit)
  15      {
  16          $bits |= $bit;
  17          return $bits;
  18      }
  19  
  20  	function remove($bits, $bit)
  21      {
  22          $bits &= ~$bit;
  23          return $bits;
  24      }
  25  
  26  	function toggle($bits, $bit)
  27      {
  28          $bits ^= $bit;
  29          return $bits;
  30      }
  31  }
  32  ?>


Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1