Re: how can i display only the country and not the whole array on Geo.php?

From: Date: Mon, 23 Aug 2004 03:55:37 +0000
Subject: Re: how can i display only the country and not the whole array on Geo.php?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14222@lists.php.net to get a copy of this message
On Mon, Aug 23, 2004 at 10:43:08AM +0800, Louie Miranda wrote: > <?php > require_once('Net/Geo.php'); > > $net_geo = new Net_Geo(); > $ip = $_SERVER['REMOTE_ADDR']; > $results = $net_geo->getRecord($ip); > > print "<pre>"; > print_r($results); > print "</pre>"; > > ?> echo $results['COUNTRY']; http://www.php.net/manual/en/language.types.array.php Regards, Doug

« previous php.pear.general (#14222) next »