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, ∼2940🔥, 0💬
Popular Posts:
How To Change Text Fonts for Some Parts of a Paragraph? If you want to change text fonts or colors f...
How to Install Docker Desktop on Windows 10? You can follow this tutorial to Install Docker Desktop ...
How to install "C++/CLI Support" component in Visual Studio? I need to build my Visual Studio C++/CL...
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
Where to find EPUB Sample Files? Here is a list of EPUB sample files collected by FYIcenter.com team...