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, 3806🔥, 0💬
Popular Posts:
Where to find tutorials on RSS specifications? I want to learn it to describe my API services. Here ...
How to login to Azure API Management Publisher Dashboard? If you have given access permission to an ...
How To Protect Special Characters in Query String in PHP? If you want to include special characters ...
How to add request query string Parameters to my Azure API operation 2017 version to make it more us...
Where Is the Submitted Form Data Stored in PHP? When a user submit a form on your Web server, user e...