Function __global->bin2hex
Definitions
sources_custom/phpstub.php
- Convert binary data (in string form) into hexadecimal representation (in string form).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $str | string | No | No | required parameter | N/A | N/A | Binary string |
Returns
- Hex string
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert binary data (in string form) into hexadecimal representation (in string form).
*
* @param string $str Binary string
* @return string Hex string
*/
function bin2hex(string $str) : string
* Convert binary data (in string form) into hexadecimal representation (in string form).
*
* @param string $str Binary string
* @return string Hex string
*/
function bin2hex(string $str) : string

