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, 3841🔥, 0💬
Popular Posts:
How to access Query String parameters from "context.Request.Url.Que ry"object in Azure API Policy? Q...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...
How to login to the Developer Portal internally by you as the publisher? Normally, the Developer Por...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...