Home > PHP > Function > GeoIP > geoip_database_info()

geoip_database_info()

geoip_database_info - Get GeoIP Database information

Syntax

string geoip_database_info (int $database)

Arguments

  • database - The database type as an integer. You can use the various constantsdefined with this extension (ie: GEOIP_*_EDITION).

Description

The geoip_database_info() function returns the corresponding GeoIP Database version as it is defined inside the binary file.

Version

PHP PECL geoip >= 0.2.0

Return value

Returns the corresponding database version, or NULL on error.