
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
PHP dechex Function
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