- 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
hexdec() function in PHP
The hexdec() function converts hexadecimal number to decimal number.
Syntax
hexdec(val)
Parameters
val − The hexadecimal to be converted.
Return
The hexdec() function Returns the decimal value of val, which is hexadecimal.
Example
<?php echo hexdec("d") . "<br>"; echo hexdec("398f"); ?>
Output
13<br>14735
Advertisements