Friday, March 30, 2012

Hexadecimal operation over a large number in PHP

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:

Get function name programaticaly - Python

This little piece of code will help you to get the function name programatically. This is very helpful when you are implementing the debug...