Posts by Faruque Ahamed Mollick

Author Biographical Info: Not available

Get last n items from an array in JavaScript

By Faruque Ahamed Mollick

I am again here with a new JavaScript solution. In this tutorial, you are going to learn how to get last n items from an array in JavaScript programming. For example, suppose you h.... Read More

Convert a JavaScript array to an object

By Faruque Ahamed Mollick

While working in a project, we often may have a JavaScript array, but we need an object of the same data for some purpose. So, in this article, I will let you know how can you conv.... Read More

Remove Duplicate Values from a JavaScript Array

By Faruque Ahamed Mollick

In this tutorial, you will see how to remove duplicate values from a JavaScript array with simple and quick examples of JS code. First of all, I would like to let you know that, th.... Read More

Send POST data in JavaScript using XMLHTTPRequest

By Faruque Ahamed Mollick

On the web, it is often necessary to send HTTP requests with post data. In this article, you will learn how to send post data in JavaScript using the XMLHTTPRequest object. The XML.... Read More

How to convert an image to Grayscale in PHP

By Faruque Ahamed Mollick

In this article, I am going to tell you how to convert a normal colored or any RGB image to a grayscale image in PHP. Before I go through, let me tell you what is actually a Graysc.... Read More

JavaScript mousemove Event | Execute on moving mouse pointer

By Faruque Ahamed Mollick

The JavaScript mousemove event executes when the mouse pointer moves over an element. With onmousemove event, we can execute our JavaScript code on moving the mouse pointer. Every .... Read More

Get the maximum value from an array in PHP

By Faruque Ahamed Mollick

Suppose we have an array that contains some numbers. Now we need to find the maximum value or number from that array in PHP. In this article, we are going to see the easiest way to.... Read More

Convert comma separated string to an array in JavaScript

By Faruque Ahamed Mollick

In this article, you are going to learn how to convert a comma separated string into an array in JavaScript. All the elements of our array will hold the items separated by commas. .... Read More