[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

Need to convert Denary to Hex

Need to convert normal denary to hex.


ie turn 255 into FF

Tony
0
tonelm54
Asked:
tonelm54
  • 4
  • 2
1 Solution
 
b0lsc0ttIT ManagerCommented:
tonelm54,

Use the dechex function.  For example ...

echo dechex(255);

Will give you FF.

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
aescntCommented:
By the way, do you mean "decimal" instead of "denary"? :)
0
 
b0lsc0ttIT ManagerCommented:
My comment assumes that it was a typo and you meant decimal.

bol
0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 
aescntCommented:
Hehe, I meant to ask that to the asker. :) I thought decimal, too.
0
 
b0lsc0ttIT ManagerCommented:
@Aescnt - I realized that, especially since I didn't use "denary."  Your comment made me realize that I should note the "correction" I made.  My post was a notice to Tonelm54 just in case I was wrong about the typo.

bol
0
 
b0lsc0ttIT ManagerCommented:
I'm glad that I could help you.  Thank you for the grade, the points and the fun question.

bol
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now