PHP Classes

thanks

Recommend this page to a friend!

      Bit field  >  All threads  >  thanks  >  (Un) Subscribe thread alerts  
Subject:thanks
Summary:thanks for fast reaction
Messages:2
Author:Wojtek Jarzecki
Date:2012-01-13 11:04:38
Update:2012-01-13 11:11:17
 

  1. thanks   Reply   Report abuse  
Picture of Wojtek Jarzecki Wojtek Jarzecki - 2012-01-13 11:04:38
Thank you for your quick response and modification of this class. The class is an old but very useful.
I added(copied) one method. For their goals because I like to call the methods as strings toggleset, then this method calls added.

/**
* Toggleset the set bit at $offset.
* If the bit is set then reset it, and viceversa.
*
* @param int $offset
* @return Bitfield
*/
function toggleset (/*int*/$offset) {
$this->_bits ^= 1 << $offset;
return $this;
}

regards
Wojtek

  2. Re: thanks   Reply   Report abuse  
Picture of Wojtek Jarzecki Wojtek Jarzecki - 2012-01-13 11:11:17 - In reply to message 1 from Wojtek Jarzecki
I forgot about something. If you use Windows and Notepad + + editor, I recommend my PHP plugin for Notepad + +. I use it to szybkicj tests. There is always at hand and is useful.
Soon upgrade to version PHP 5.3 now works on 5.2.

plugin is on : http://sourceforge.net/projects/phpfornppplugin/

regards WJ