- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
dechex() function in PHP
The dechex() function converts decimal to hexadecimal. It Returns the hexadecimal string of the specified decimal.
Syntax
dechex(num)
Parameters
num − The decimal value to be converted
Return
The dechex() function Returns the hexadecimal string of the specified decimal.
Example
<?php echo dechex("15") . "<br>"; echo dechex("1990"); ?>
Output
f<br>7c6
Advertisements