Tools, FAQ, Tutorials:
Converting Strings to Hex Numbers in PHP
How To Convert Strings to Hex Numbers?
✍: FYIcenter.com
If you want convert a string into hex format, you can use the bin2hex() function. Here is a PHP script on how to use bin2hex():
<?php $string = "Hello\tworld!\n"; print($string."\n"); print(bin2hex($string)."\n"); ?>
This script will print:
Hello world! 48656c6c6f09776f726c64210a
⇒ Generating Character from ASCII Value in PHP
⇐ Comparing Two Strings with strcmp() in PHP
2016-10-13, ∼3844🔥, 0💬
Popular Posts:
Where to find tutorials on Microsoft Azure services? Here is a large collection of tutorials to answ...
How to add request body examples to my Azure API operation to make it more user friendly? If you hav...
How to make application release build with Visual Studio 2017? If you want to make a final release b...
How to login to Azure API Management Publisher Dashboard? If you have given access permission to an ...
Where to find tutorials on Visual Studio? I want to know How to learn Visual Studio. Here is a large...