title: Bitwise and unsigned int operations in PHP
body: <p>I'm trying to convert my C++ code to PHP and I'm stuck, my source codes uses unsigned integers (32bit) and many bitwise operations like rotations, xor, shifting, I'm trying my best to make it work, I'm cutting integers to 32bit</p>
  
  <p>$i = $i &amp; 0xFFFFFFFF;</p>
  
  <p>but still I'm having a lot of troubles (my guess it has something to do with multiplication/division) this time.</p>
  
  <p>Are there any libraries for PHP that handles operations on 32bit unsigned integers, any other ideas are also welcome :) Thank you :)</p>