Add Watermark on Images using PHP

One of the most common approaches to brand/protect images is watermarking. Here I would like to show you how to use PHP to add a watermark to images. PHP uses its GD library to write text on images using true type fonts. […]

Remove specific value from array using php?

This post shows the possible ways to remove specific element from array based on value of the element. Removing specific value Using array_diff() Using this method we can remove one or more elements where using other methods […]

Reading RSS Feed with PHP

This article shows how to read RSS feeds using php script. If you are reading this post you might know about RSS feeds and it’s benefits. It is good to display your blog feeds as like recent articles list to keep […]

Add text to an image with PHP

In this post I would like to show how you can add text to an image with PHP, GD Library. In this post, we will use an existing image and we will write text on it.The imagettftext() function will be used to write the text […]

Zero Padded Numbers with php?

Today I got a situation where I need automatically zero filled number. I realized it could be done much str_pad. The reason I am writing this post is, I just want to share with my readers. str_pad — Pad a string to a […]

Flatten Nested Arrays Using PHP

In this post I would like to share with you code snippet, which you can use to flatten nested array into one array with string keys with dot notation. This function takes nested array as input. While working with laravel […]

DMCA.com Protection Status