I have an XML string like below getting returned from an API call
<Results recordReturn="1"><Result><cst_key>1234567-9087-1234-1234-1234567890</cst_key><username>577155</username><ind_first_name>TestingUserFirstName</ind_first_name><ind_last_name>TestUserLastName</ind_last_name><ind_full_name_cp>TestingUserFirstName TestUserLastName</ind_full_name_cp><cst_web_login>xyz@gmail.com</cst_web_login><cst_eml_address_dn>xyz@gmail.com</cst_eml_address_dn><adr_city_state_code>New York, NY 12345</adr_city_state_code></Result></Results>
How do I get the value for cst_key
I am doing the following but it does not gives me any values
$results = simplexml_load_string($stringXml);
echo $results->Results->Result['cst_key'];
After the simplexml_load_string call it seems to be losing the values in it.