PHP GD How to center a text on an image using GD

Dec 10, 2008 Author: christina
This is a snippet which centers a text on an image using the GD Library. First, we create the image using the ImageCreate() function. Here we set the width & height.

PHP How to Sort an Array

Dec 04, 2008 Author: Jenna
It is often necessary to arrange the elements in an array in numerical order from highest to lowest values (descending order) or vice versa (ascending order). If the array contains string values, alphabetical…