Need help with output XMPLAPI.php

waleedkhan

Registered
Nov 23, 2014
2
0
1
cPanel Access Level
Website Owner
Hi i need help and i hope and i think i will get solution here as i am trying to get


$xmlapi->api2_query( $account, 'ZoneEdit', 'fetchzone', array( "domain" => $domain,"name"=>'subdomainname' ) ))

after that when i echo it in php i get space and blank page so i do
var_dump($xmlapi->api2_query( $account, 'ZoneEdit', 'fetchzone', array( "domain" => $domain,"name"=>'subdomainname' ) ))

and i got the result

Code:
object(SimpleXMLElement)#2 (5) { ["apiversion"]=> string(1) "2" ["data"]=> object(SimpleXMLElement)#4 (4) { ["record"]=> object(SimpleXMLElement)#5 (8) { ["name"]=> string(21) "qaz.outclasshost.com." ["Line"]=> string(2) "58" ["address"]=> string(15) "206.190.159.177" ["class"]=> string(2) "IN" ["line"]=> string(2) "58" ["record"]=> string(15) "206.190.159.177" ["ttl"]=> string(5) "14400" ["type"]=> string(1) "A" } ["serialnum"]=> string(10) "2014112401" ["status"]=> string(1) "1" ["statusmsg"]=> string(15) "Zone Serialized" } ["event"]=> object(SimpleXMLElement)#3 (1) { ["result"]=> string(1) "1" } ["func"]=> string(9) "fetchzone" ["module"]=> string(8) "ZoneEdit" }
so all i need is line number so can u plz tell me how can i store line number in my variable plz complete code will be highly appreciated