← All built-ins / hex2bin()
hex2bin()
hex2bin(string $s): string
Parameters
| Name | Type | Description |
|---|---|---|
| $s | string | hex string (even length) |
Return value
The decoded raw bytes.
Example
echo hex2bin("486f6c79");Holy
| Name | Type | Description |
|---|---|---|
| $s | string | hex string (even length) |
The decoded raw bytes.
echo hex2bin("486f6c79");Holy