bin2hex

PHP 4, PHP 5, PHP 7, PHP 8
bin2hex - Convert binary data into hexadecimal representation
Bin2hex Online Tool
Manual
Code Examples

Example #1 bin2hex example

Result: string(24) "48656c6c6f20776f726c6421" string(12) "Hello world!"
PHP Version:


Example #2 of bin2hex

PHP Version:


Function bin2hex:

Strings Functions

Most used PHP functions