Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
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
