PHP hex2bin() Function


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

Syntax
hex2bin(string)
Parameters
  • string - (Required) Hexadecimal value to convert.
Example
<?php
echo hex2bin("57656C636F6D65");
?>

Output

Welcome

Prev Next