Posts from PHP

Validate YouTube video URL format in PHP using parse_url() function

By Faruque Ahamed Mollick

We can check if a URL is a valid YouTube video link or not easily in PHP using the parse_url() function. The parse_url is the inbuilt function of PHP that is supported by PHP 4 and.... Read More

Value To Visual Star Rating in PHP Using Font Awesome Star icons

By Faruque Ahamed Mollick

Today we are going to see a nice PHP trick. Here in this tutorial, we will see how we can create visual star rating depending upon the value from 0 to 5 in PHP and using the font a.... Read More

Check if a string contains a particular word using PHP

By Faruque Ahamed Mollick

In this PHP related post, we are going to see how to check if a string contains a particular word inside it. We are going to do it in PHP. We may be needed to find the availability.... Read More

Execute and calculate string as a mathematical equation in PHP

By Faruque Ahamed Mollick

Suppose we have a string of mathematical expression and we need to calculate and then get the value of the expression using PHP. How can we do it? Now, we are going to learn how to.... Read More

How to delete or remove array element in PHP?

By Faruque Ahamed Mollick

We can delete or remove array element from an array easily. Using the unset() PHP function, we can delete or remove one element from an array. We can delete multiple array elements.... Read More

How to remove the last comma from a PHP foreach loop?

By Faruque Ahamed Mollick

Using PHP foreach loop, we can list the items of an array easily. Also, sometimes we may need to give comma signs after each array. But in English grammar, we should not place the .... Read More

Detect the browser in PHP

By Faruque Ahamed Mollick

In this tutorial, we are going to see how to detect the browser of a user using PHP programming language. Here we are going to create our own custom PHP function which we can call .... Read More