Posts by Faruque Ahamed Mollick

Author Biographical Info: Not available

Sort array values alphabetically in PHP

By Faruque Ahamed Mollick

This tutorial is related to PHP array and may be helpful for many of you. Here I am going to show you how you can easily sort a PHP array values alphabetically with the required co.... Read More

Array to JSON conversion in PHP using json_encode

By Faruque Ahamed Mollick

If you are reading this article, then most probably you already know about JSON and PHP array. Now I am going to show you how you can convert any PHP array into JSON formatted stri.... Read More

Count the number of words in a string in JavaScript

By Faruque Ahamed Mollick

It is quite an easy task to count the number of words in a given string with JavaScript. In this article, I will show you how to perform this task. To count words from the string, .... Read More

Change Background Color on Mouse Hover in JavaScript

By Faruque Ahamed Mollick

In this JavaScript HTML DOM tutorial, I am going to show you how we can change the background color of an element. Before we get started, let’s create an HTML element with an.... Read More

Get the ratio of two numbers in JavaScript

By Faruque Ahamed Mollick

I am again here with another JavaScript solution. In this article, you are going to see how to get the ratio between two numbers in JavaScript. Well, when we all were in high schoo.... Read More

Get the ratio of two numbers in PHP

By Faruque Ahamed Mollick

In this article, I am going to guide you to show how to get the ratio of two numbers in PHP. Follow me to see how we can perform this useful task. I hope, you already know what is .... Read More

Check if div element with class name exists in JavaScript

By Faruque Ahamed Mollick

In this tutorial, we are going to check if div element with a specific class name exists or not in JavaScript. The JavaScript program we are going to write for the browser will abl.... Read More

Check if a variable is an array or not in PHP

By Faruque Ahamed Mollick

We often need to store an array in a variable. So here in this post, I am going to let you know how you can check whether a variable is an array or not in PHP. So let’s conti.... Read More