Let’s say, you have a value like e.g. a name and you’ll find out, whether this value exists in an array of names or not. How could you do this? Well, it’s quite simple. Here I’ll show you how.
Do you want to find out the modification time of a file in your PHP script? Well, in this article you’ll find out how easy this is. 😉
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
HTML5 offers a lot of new features, which were, in my opinion, long overdue. In this article i will show you three great new HTML5 attributes which will make coding your HTML5 Website easier.
Converting a decimal number to a binary number is easy. You just have to divide the decimal number by 2. If the division yields an integer, note 0, otherwise 1.
Now take the integer part of the division and divide it again by 2. Here, too, the value 0 or 1 is determined analogously.
This is done until the result of the division is 0.
Here is an example:
It is very easy to count DOM-Elements within a HTML-file by using jquery. Here is a little example: