PHP Programing language

hex2bin() Functions in PHP
Previous Home Next
adplus-dvertising

hex2bin()

The hex2bin() function converts a string of hexadecimal values to ASCII characters.

Syntax:
hex2bin(string)

In above syntax,"string" converts the hexadecimal value

Example:

<?php
echo hex2bin("477564204d6f726e696e6720496e64696121");
?>

Output:

Gud Morning India!

Previous Home Next