Jump to: navigation, search

Php dechex

From w3cyberlearnings

Contents

PHP function dechex

This function converts decimal to hexadecimal number, and it returns hexadecimal string representation of number.

Syntax dechex

X is a given number.

dechex(X);

Example 1

<?php
echo dechex(10);
echo "<br/>";
echo dechex(16);
?>

Output

a
10

Related Links


Navigation
Web
SQL
MISC
References