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, 3095🔥, 0💬
Popular Posts:
Where to find tutorials on HTML language? I want to know how to learn HTML. Here is a large collecti...
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" ...
How to register and get an application ID from Azure AD? The first step to use Azure AD is to regist...
Why I am getting "The Windows SDK version 8.1 was not found" error, when building my C++ application...
How to search for the first match of a regular expression using re.search()? The re.search() functio...