Tag Archives: size

Random String in PHP

In some time you need to create a random String or random number. It might be for a verification code, create tokens,  a complex password, or something you are developing. You might think that its a boring and manual process. Luckily, this is not true. Below we present a simple way to create random Strings or random number using PHP. All you need is one function with a few lines of code. Let’s begin… Basically we define some function to create […]

Count Number of Elements With Jquery

There may be times when you need to work out how many times a particular element appears on a page or within a section with Javascript and this is easy to do with jQuery using the length property. Using the method in this post you can also work out if an element exists on the page with jQuery. What is correct way to count number of elements using jQuery? It can be done using .length and size() method but here […]