WIP: Word Games!

Well, not so much games as utilities. I’ve been a bit bored lately, so I decided to work on some “word game” scripts in PHP. I’ve got a Word Count, Reverse a String, check Palindrome, and Encrypter/Decrypter script. I’ve also got an upcoming “Letter Count” script that’ll count the amount of letters in a string. (In programming terms, a string is just a bit of text.)

The Palindrome checker is still a WIP, but it’s mostly working. Basically, enter a bit of text and it will check if the text is the same backwards as forwards. For example, “racecar”.

The Word Count script obviously counts the amount of words in a string. In this case, it also counts the amount of characters, with or without spaces.

The Reverse a String script allows you to enter some text and it will reverse it for you.

The Encrypter/Decrypter script allows you to enter some text and it will encrypt it. This encryption is the type where you change each letter to the letter following it in the alphabet—for example, “a” would become “b”, “b” would become “c”, and so on. There’s also a box for you to decrypt already-encrypted text.

You can check out all these awesome scripts in the Projects directory of my website.