- 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
hex2bin() function in PHP
The hex2bin() function is used to convert a string of hexadecimal to ASCII character.
Syntax
hex2bn(str)
Parameters
str − The hexadecimal value to be converted
Return
The hex2bin() function returns the ASCII character of the converted string, or FALSE on failure.
Example
The following is an example −
<?php echo hex2bin("6578616d706c65206865782064617461"); ?>
Output
example hex data
Advertisements