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
2016-10-13, 789👍, 0💬
Popular Posts:
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How to use the API operation 2017 version setting "Rewrite URL template"? The API operation setting ...
Where to find tutorials on RSS specifications? I want to learn it to describe my API services. Here ...
How to Test API as a Publisher Administrator? You can follow this tutorial to test an API operation ...