private static function intLowHigh($input, $length)
{
$maxInput = 256 << $length * 8 - 1;
self::validateInteger($length, 1, 4, __FUNCTION__);
self::validateInteger($input, 0, $maxInput, __FUNCTION__);
$outp = "";
for ($i = 0; $i < $length; $i++) {
$outp .= chr($input % 256);
$input = (int) ($input / 256);
}
return $outp;
}