In this article we will see how to generate a random hash string using javascript. Here are the different hash strings that we will see how to generate. Following is the example on how to generate the random hash string…
Programming
In this article, we will discuss how to implement a random sleep in JavaScript. Defining the sleep method In javascript we can simulate the sleep functionality by using the setTimeout. In the below example, we defined our own sleep function…
In this article, we will discuss how to calculate the number of days between two dates in JavaScript. By using the Date object in the JavaScript we can easily achieve this task. Following is the example of how to calculate…
In this article, we will how to generate a random date between two dates in JavaScript. First, we should define the start and end date between which we want to generate a random date. We can do this in JavaScript…
There are several ways to split a string by its length in php. In this article, we will see some of the common and easy ways to do that. How to split a string using str_split() By using the str_split()…
In this article we will see how to generate a random hash string using php. We can use the rand() or mt_rand() functions to generate random integers that correspond to ASCII codes, and then convert those integers to characters. Following…
In this article we will see how to find the no of days between two dates using php. The easiest way to calculate the no of days between two dates is by using the strtotime() function to convert the given…
In this article, we will see how to validate a date string format in PHP. Before validating the date string format first we have to make sure the format that the date string should be in. There are several date…
In this article, we will see how to list directories, subdirectories, and files using PHP. To achieve this we use some of the inbuilt functions such as opendir(), readdir(), is_dir(), and closedir(). Following is an example program on how to…
In this article, we will see how to generate a random date between two dates using PHP. To generate a random date between two dates, we have to use the built-in PHP functions strtotime(), rand(), and date(). To convert the…