Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
January 2012 M T W T F S S « Nov 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Categories

LOL if you see this your computer is messin up! :P
Hello world!Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
Posted in Uncategorized
Leave a comment
PHP: Odd and Even functions.I wanted to create something today, so I made this. The idea is very basic, you have two functions (Odd and Even). Using Odd: this allows you to find out if an integer is an odd number (cannot be divided by two). Using Even: this allows you to find out if an integer is an even number (Can be divided by two). Both functions return false or true depending on the out-come. PHP FUNCTION(S):number: even ( string: $int ) Parameters:$int: (Required)
Examples:
This is really meant for strings that you have not a clue what the integer will be. I will give an example, lets say I had a database table with an “id” field. I gave the id an auto_increment value. Now, I am going to display the content, but I want a background color for each different field. This is where odd and even functions come into play. Example of above:
Download Function File
|
|