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
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week