ASCII example

You might have visited many sites related to songs or movies, you might have noticed that the searching is in Alphabetical order, so what will you do if you want such listing, write all the characters from A to Z ?.

There is an easy way for implementing this in PHP.

We can use function ord() and chr().

ord – Return ASCII value of character.

chr – Return a specific character.

I am attaching a simple example.


ASCII example.txt

1) Download the file and save the text file as PHP file.

2) Place the file in your root directory.

3) Execute the file from browser.

4) Click on the characters.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top