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 charcter 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
2016-10-13, 855👍, 0💬
Popular Posts:
How to create Hello-3.0.epub with WinRAR? I have all required files to create Hello-3.0.epub. To cre...
Where to find tutorials on introduction of EPUB 2.0.1 Specification? Here is a list of tutorials to ...
How To Upload Files into Database in PHP? To store uploaded files to MySQL database, you can use the...
What is json.tool? Can I use it to convert a JSON string a pretty-print format? json.tool is a speci...
Where to find tutorials on introduction of EPUB 2.0.1 Specification? Here is a list of tutorials to ...