PHP Code to Decipher a Message

My Latest Code

Decipher this!

You are given several secret messages you need to decipher.
Here are the conditions:
1. The first letter corresponds to ASCII character code (case sensitive)
2. The second letter needs to be switched to the last letter
3. The last letter needs to be switched to the second letter
4. If it only has one letter, it will be unchanged
5. If it only has two letters, you will just need to convert the ASCII character code ...

Read more →

GitHub Pull Request Tutorial

If you have written code and you are a user of, this tutorial will be useful to you. This tutorial is being written in a cookbook style, step-by-step format.

Step-by-Step GitHub Pull Request Tutorial

Useful: GitHub Help, Create a pull request

Step One
Download Git Bash from:

Step Two
Find a repository on GitHub that you would like to work on.

Step Three
Click the Fork button.

Github Fork

Read more →

Website Security

Website Security: Is It Important?

If you are not sure how to answer this question, or if you are of the belief that your site does not fall under this category as your company is not a large corporation, you are wrong. Small websites are commonly hacked for use of resources. A good portion of all hacked sites are not hacked by individuals; but rather, the greatest risk to all websites is the result of automated malware. Sucuri, a website security team, ...

Read more →

Code that Saves People’s Lives

Code that Saves People’s Lives

The most important aspects of coding lies in it’s ability to positively impact, influence and enhance the mission of any organization. For me personally, one of the most, if not the most, important aspects of coding is finding solutions for problems in society that will change people’s live for the better.

Q. What is the Problem?
A. In the United States: a) someone dies from suicide every 15 minutes, b) there are over 30,000 suicides ...

Read more →

I Right Code

I Right Code
I Write Code
I Write Better PHP Code

The greatest asset to any programmer is their ability to improve on the efficiency and simplicity of the code they write.

a) PHP Documentation
b) My PHP Code on GitHub

Code is an artistic expression and extension of one’s true self. There is nothing more satisfying then writing efficient and simplistic code that you know other programmers will view as good code. Practically anybody on God’s ...

Read more →

PHP Foreach – Query Users Tweets on Twitter

Queries twitter using specific keyword and posts most recent 100 tweets

Foreach Definition

The foreach construct provides an easy way to iterate over arrays. foreach works only on arrays and objects, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variable. There are two syntaxes:

foreach (array_expression as $value)
foreach (array_expression as $key => $value)

The first form loops over the array ...

Read more →

PHP – Most Frequent Element in an Array

A program that finds the most frequent element in an array.

Program Uses PHP functions:
array_count_values, arsort, array_keys,



array_count_values() returns an array using the values of array as keys and their frequency in array as values.


arsort — Sort an array in reverse order and maintain index association
This function sorts an array such that array indices maintain their correlation with the array elements they are associated with.

This is used mainly when sorting associative arrays where the actual element order is significant.


array_keys ...

Read more →
Page 2 of 20 12345...»