Friday, March 30, 2012

php: hexadecimal operation over a large number


Share at Facebook

Normal decimal to hexadecimal function dechex() doesn't work for a number when its slightly large. For those cases the function base_convert() is useful.

print base_convert(time().'000', 10, 16);




No comments: