PHP | gd_info() Function Last Updated : 23 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The gd_info() function is an inbuilt function in PHP which is used to retrieve the information about the currently installed GD library. This function returns the information about the version and capabilities of the installed GD library. Syntax: array gd_info( void ) Parameters: This function does not accept any parameter. Return Value: This function returns an associative array contains information about installed GD library. The information returned by this function are listed below: GD Version: It is an string value describing the installed libgd version. FreeType Support: It is a boolean value. It is True if FreeType Support is installed. FreeType Linkage: It is a string describing the way in which FreeType was linked. Expected values are: with freetype, with TTF library, and with unknown library. This element will only be defined if FreeType Support evaluated to TRUE. T1Lib Support: It is a boolean value. It is True if T1Lib support is included. GIF Read Support: It is boolean value. It return True if support for reading GIF images is included. GIF Create Support: It is a boolean value. It return True if support for creating GIF images is included. JPEG Support: It is a boolean value. It return True if JPEG support is included. PNG Support: It is a boolean value. It return True if PNG support is included. WBMP Support: It is a boolean value. It return True if WBMP support is included. XBM Support: It is a boolean value. It return True if XBM support is included. WebP Support: It is a boolean value. It return True if WebP support is included. Below program illustrate the gd_info() function in PHP: Program: php <?php var_dump(gd_info()); ?> Output: array(12) { ["GD Version"]=> string(26) "bundled (2.1.0 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPEG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true) ["WebP Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) } Related Articles: PHP | getimagesize() Function PHP | imagecolorat() function Reference: http://php.net/manual/en/function.gd-info.php Comment More infoAdvertise with us Next Article PHP | gd_info() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-function +1 More Practice Tags : Misc Similar Reads PHP linkinfo() Function The linkinfo() function is an inbuilt function in PHP that retrieves information related to the links. This function checks the link is pointed to by the path that exists. Syntax: linkinfo(string $path)Parameter: This function accepts one parameter that is described below: $path:  This parameter spe 1 min read PHP | pathinfo( ) Function The pathinfo() is an inbuilt function which is used to return information about a path using an associative array or a string. The returned array or string contains the following information:  Directory nameBasenameExtension The path and options are sent as a parameters to the pathinfo() function a 2 min read PHP | cal_info( ) Function The cal_info() function in PHP is an inbuilt function that is used to return information about a specified calendar. The cal_info() function returns an array that contains the calname, month, abbrevmonth and maxdaysinmonth, and calsymbol. It takes the calendar as a parameter and returns the informat 2 min read PHP gmp_init() Function The gmp_init() function is an inbuilt function in PHP that is used to create a GMP number from different data types, including strings, integers, or other GMP objects. It's commonly used when you want to start performing arithmetic operations on large numbers without losing precision. Syntax: gmp_in 2 min read PHP | gmp_gcd() Function The gmp_gcd() is an in built function in PHP which is used to calculate the GCD of 2 GMP numbers (GNU Multiple Precision : For large numbers). Syntax: gmp_gcd ( $num1, $num2 ) Parameters: This function accepts two GMP numbers $num1 and $num2 as parameters. This function calculates the GCD of these t 1 min read PHP | gmp_neg() Function The gmp_neg() function is an in-built function in PHP which returns the negative of a GMP number (GNU Multiple Precision). Syntax : gmp_neg( $num ) Parameters : The function accepts only one mandatory parameter $num which can be either a GMP number resource in PHP 5.5 or a GMP object in PHP version 1 min read PHP | gmp_intval() Function The gmp_intval() is an inbuilt function in PHP which converts a GMP number to an integer. Here GMP refers to GNU Multiple Precision which is for large numbers.Syntax:  int gmp_intval ( $num ) Parameters: The function accepts a single parameter $num which is a GMP number and returns its integer valu 2 min read PHP | gmp_import() Function The gmp_import() function is an inbuilt function in php which imports a GMP number(GNU Multiple Precision: For large numbers) from a binary string. Syntax: GMP gmp_import ( string $data, int $word_size, int $options ) Parameters: The gmp_import() function accepts three parameters as mentioned above 2 min read PHP | gmdate() Function The gmdate() is an inbuilt function in PHP which is used to format a GMT/UTC date and time and return the formatted date strings. It is similar to the date() function but it returns the time in Greenwich Mean Time (GMT). Syntax: string gmdate ( $format, $timestamp ) Parameters: The gmdate() function 2 min read PHP password_get_info() Function The password_get_info() is an inbuilt PHP function where detailed information regarding the given hash will be returned. Syntax: password_get_info(string $hash): arrayParameter: This function accepts a single parameter: hash: This parameter defines the hash of the password by creating the password_h 1 min read Like