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, 2477🔥, 0💬
Popular Posts:
How to create Hello-3.1.epub with WinRAR? I have all required files to create Hello-3.1.epub. To cre...
Where to find tutorials on Visual Studio? I want to know How to learn Visual Studio. Here is a large...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
What validation keywords I can use in JSON Schema to specifically validate JSON Array values? The cu...