Skip to content

Instantly share code, notes, and snippets.

@hm2k
hm2k / leftshift32
Created May 13, 2012 20:25
Performs a 32-bit left shift operation (<<) even on a 64-bit machine
/**
* Performs a 32-bit left shift operation (<<) even on a 64-bit machine
*
* @param integer $number Shift these bits
*
* @param integer $steps Step this many times
*
* @return string Returns the integer
*/
function leftshift32 ($number, $steps)