Tools, FAQ, Tutorials:
Generating Character from ASCII Value in PHP
How To Generate a Character from an ASCII Value?
✍: FYIcenter.com
If you want to generate characters from ASCII values, you can use the chr() function. chr() takes the ASCII value in decimal format and returns the character represented by the ASCII value. chr() complements ord(). Here is a PHP script on how to use chr():
<?php print(chr(72).chr(101).chr(108).chr(108).chr(111)."\n"); print(ord("H")."\n"); ?>
This script will print:
Hello 72
⇒ Converting Character to ASCII Value in PHP
⇐ Converting Strings to Hex Numbers in PHP
2016-10-13, 2485🔥, 0💬
Popular Posts:
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API...
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...
How To Convert a Character to an ASCII Value? If you want to convert characters to ASCII values, you...
Why am I getting this "Docker failed to initialize" error? After installing the latest version of Do...
What Is session_register() in PHP? session_register() is old function that registers global variable...