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, ∼4391🔥, 0💬
Popular Posts:
How to add request query string Parameters to my Azure API operation to make it more user friendly? ...
How to add request query string Parameters to my Azure API operation to make it more user friendly? ...
How to use the built-in "context" object in Policy expressions? The built-in "context" object can be...
How To Merge Cells in a Column? If you want to merge multiple cells vertically in a row, you need to...
How to reinstall npm with a node version manager? I am getting permission errors with the current ve...