Michael:
> I have the following OO code (calling on a PEAR function)
> 
> $test =& Net_DNS_RR::factory($rr);
> 
> print_r($test);
> 
> And this is the output of the 'print' command:
> 
> Net_DNS_RR Object
> (
>     [name] => xyz.co.nz
>     [type] => A
>     [class] => IN
>     [ttl] => 600
>     [rdlength] => 4
>     [rdata] => ËY²æ
>     [address] => 255.255.255.255
> )
> 
> However I only want the values 'type' and 'address" and I want them as 
> variables (ready to use in traditional procedural style code).
> 
> How do I obtain the values of '[type]' and '[address]' as $variables?
> 

$type = $test->type;
$address = $test->address;


> Michael
> 
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to