Tools, FAQ, Tutorials:
Converting Character to ASCII Value in PHP
How To Convert a Character to an ASCII Value?
✍: FYIcenter.com
If you want to convert characters to ASCII values, you can use the ord() function, which takes the first character of the specified string, and returns its ASCII value in decimal format. ord() complements chr(). Here is a PHP script on how to use ord():
<?php print(ord("Hello")."\n"); print(chr(72)."\n"); ?>
This script will print:
72 H
⇐ Generating Character from ASCII Value in PHP
2016-10-13, 3162🔥, 0💬
Popular Posts:
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
Where to see resource detailed information of my API Management Service on Azure Portal? Once you ha...
How to run CMD Commands in Dockerfile to change Windows Docker images? When building a new Windows i...
What Is session_register() in PHP? session_register() is old function that registers global variable...
How to run PowerShell Commands in Dockerfile to change Windows Docker images? When building a new Wi...