DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Decimal To Hexa Decimal Converter

  • submit to reddit
        This PHP code will convert Decimal to Hexadecimal value
function d2hconvert($decimal){
return dechex($decimal);
echo $decimal." equivalent Hexadecimal value is ".d2hconvert($decimal);
Similarly for hexdec(),hexoct() and hexbin()
To convert Decimal to Binary use 
We can also use this <a href="">Decimal to Hex Converter</a>