Hi
I'm making a script to generate email accounts.
I want to manage the json result, but all the time it returns NULL when I access to the fields "reason" and "result"
This is my var_dump result from API:
and this is my access to the fields that return NULL:
How can I access?
I'm making a script to generate email accounts.
I want to manage the json result, but all the time it returns NULL when I access to the fields "reason" and "result"
This is my var_dump result from API:
Code:
vstring(232) {"cpanelresult":{"error":"The account [email protected] already exists!","func":"addpop","data":[{"reason":"The account [email protected] already exists!","result":0}],"apiversion":2,"module":"Email","event":{"result":1}}}
Code:
var_dump ($resultado['cpanelresult']['data'][0]['reason']);
var_dump ($resultado['cpanelresult']['data'][0]['result']);
Last edited by a moderator: