PHP bin2hex() FunctionPHP bin2hex() function is used to convert string value of ASSCII characters to hexadecimal value. Syntax:
Example 1Output: Your ASCII character is:Hello World! By using 'bin2hex()' Method your hexadecimal value is: 48656c6c6f20576f726c6421 Note: Convert a string value into binary to hex.Example 2Output: Your Hexadecimal Value is 48656c6c6f20776f726c6421 Hello world! Example 3Output: Your Binary Value is11111001 Converted Binary to Hexadecimal : f9 Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India