batman99 Posted December 27, 2006 Share Posted December 27, 2006 HelloI am trying to extract the contents of an object that is contained inside an array.[code]$result = $response->getNss();print_r($result); [/code]Produces:[code]Array ( [0] => DomainNs Object ( [name:private] => dns1.dnsserver.com [ip:private] => ) [1] => DomainNs Object ( [name:private] => dns3.dnsserver.com [ip:private] => ) ) [/code]Could someone please let me know how I can get the contents of the DomainNs object (ie extract DomainNs:name and DomainNs:ip) from the above array into readable variables? Any ideas?Really appreciate the help.Thanks Link to comment https://forums.phpfreaks.com/topic/31982-object-in-array/ Share on other sites More sharing options...
Barand Posted December 27, 2006 Share Posted December 27, 2006 You have this same question in another post, so while I answer this one someone else could be wasting time answering the other.DON'T double post. Closing. Link to comment https://forums.phpfreaks.com/topic/31982-object-in-array/#findComment-148420 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.