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, ∼2832🔥, 0💬
Popular Posts:
How to pull NVIDIA CUDA Docker Image with the "docker image pull nvidia/cuda" command? If you are ru...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to attach console to a Running Container using the "docker container exec" command? I want to ge...
How to include additional claims in Azure AD v2.0 id_tokens? If you want to include additional claim...