Posts from PHP

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

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 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

Encrypt and Decrypt a String in PHP

By Faruque Ahamed Mollick

Encryption and decryption of data is a technique used for security purposes. This technique widely used to keep confidential messages secret and only readable by the receiver of th.... Read More

Convert URLs within text string into clickable links in PHP

By Faruque Ahamed Mollick

If you have text which contains one or more than one URL, then you may need to convert those into hyperlinks on the web page. You may often find in different types of social media .... 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

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