PHP » GoLang |
login |
register |
about
|
hex2bin(PHP 5 >= 5.4.0, PHP 7) hex2bin — Decodes a hexadecimally encoded binary string Description
string hex2bin
( string
$data
)Decodes a hexadecimally encoded binary string. Caution
This function does NOT convert a hexadecimal number to a binary number. This can be done using the base_convert() function. Parameters
Return Values
Returns the binary representation of the given data or Errors/Exceptions
If the hexadecimal input string is of odd length or invalid hexadecimal string
an Changelog
ExamplesExample #1 hex2bin() example
<?php The above example will output something similar to: string(16) "example hex data" |
more
Recently updated
more
Most requested
more
Last requests
|