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, 3158🔥, 0💬
Popular Posts:
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How to use the "set-backend-service" Policy Statement for an Azure API service operation? The "set-b...
Where to find tutorials on OpenID? Here is a large collection of tutorials to answer many frequently...
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request....