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, ∼3821🔥, 0💬
Popular Posts:
How To Pad an Array with the Same Value Multiple Times in PHP? If you want to add the same value mul...
How to run CMD Commands in Dockerfile to change Windows Docker images? When building a new Windows i...
How to create a VC# class and build it into a library? If you want to create a VC# class and build i...
How to login to Azure API Management Publisher Dashboard? If you have given access permission to an ...
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...