Do you want to build an array in PHP, which should contain existing variables? Well, there is an easy way to do this. PHP has a very cool function for this to do. You can use the variable’s name as the key and the variables value as the value.
There is a simple way in PHP to find out, wheather a number is odd or even. All you need is the modulo operator.
What is the modulo operator?
The modulo operator in PHP is represented by an %. With this operator you can determine the rest of an interger division.
Here’s an example:
Would you like to display playing cards symbols like Diamonds, Hearts, Clubs and Spades on your HTML pages? Well, it’s quite simple. Just use the following HTML codes: Symbol Code HTML Diamonds ♦ ♦ ♦ Hearts ♥ ♥ ♥ Clubs ♣ ♣ ♣ Spades ♠ ♠ ♠ With the playing cards HTML codes you … Read more HTML Codes For Playing Cards