display cpanel xml-api output using php -


i'm creating php site creates accounts automatically using xml-api of php. account creation works perfectly, , var_dump output of $response shown below:

$response="simplexmlelement object (     [result] => simplexmlelement object     (        [status] =>  1        [statusmsg] => account creation ok     )  )"; 

how can retrieve value of status tag , display user?

i tried this, not working:

 echo (string) $response->result->status; 

thanks help!


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -