An easy way to get the numeric value for the GD Version :
$Version = ereg_replace('[[:alpha:][:space:]()]+', '', $GDArray['GD Version']);
|  | gd_info说明array gd_info ( void )返回一个关联数组描述了安装的 GD 库的版本和性能。 
 表格 1. gd_info() 返回的数组的单元 
 
 参见 imagepng(),imagejpeg(),imagegif(),imagewbmp() 和 imagetypes()。  add a note
  User Contributed Notes 
  Michael Z 29-Sep-2005 03:40 
An easy way to get the numeric value for the GD Version :
  Hagan Fox 03-May-2005 07:35 
This function safely determines the GD version, even on PHP versions earlier than 4.3 that lack the gd_info() function.  Use it to avoid having your script halt with a fatal error if you try to use a TrueColor function and the GD version isn't 2.0 or later.
  phpnet at furp dot com 09-Dec-2004 02:59 
I updated the function below to include the GD Version info and any other string fields. The function only showed the bool values before.
  yohami dot com - zerodj at hotmail dot com 14-Jan-2004 11:09 
A cool resize / cropping script for creating thumbnails using mogrify
  Elie De Brauwer <elie at de-brauwer dot be> 28-Aug-2003 11:40 
Since I noted that gd_info() returned on my system more info than the manual said (11 fields instead of 9, the extra fields are FreeType Linkage Support and JIS-mapped Japanese Font Support), I wrote these two little functions that dump the information returend by gd_info() in a dynamical and colored way. 
  meuk at nospam dot quicknet dot nl 29-Apr-2003 02:32 
this function, as well as other functions that rely on the gd library, generates an error when you don't have the extension configured in your php.ini file. I had some trouble finding out how to get it working so here are the steps I took on a clean (windows / apache)- install:
  johnschaefer at gmx dot de 10-Apr-2003 08:25 
this is a replacement for this function. |  | ||||||||||||||||||||||