$theInt = 1501299200; $theHex = sprintf("%lx", $theInt); # returns 597c0200;