Home > Archive > PHP Pear > August 2004 > Re: [PEAR] how can i display only the country and not the whole array on Geo.php?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] how can i display only the country and not the whole array on Geo.php?
|
|
| Doug Kearns 2004-08-23, 3:56 am |
| 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
| |
| Louie Miranda 2004-08-24, 9:06 am |
| thank you,
sorry also..
i was able to read just now the array, im still new on that.
thanks again!
On Mon, 23 Aug 2004 13:55:37 +1000, Doug Kearns
<djkea2@mugca.its.monash.edu.au> wrote:
> On Mon, Aug 23, 2004 at 10:43:08AM +0800, Louie Miranda wrote:
>
> echo $results['COUNTRY'];
>
> http://www.php.net/manual/en/language.types.array.php
>
> Regards,
> Doug
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Louie Miranda
http://www.axishift.com
|
|
|
|
|