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.