I have XML string $input which is received from SOAP service
$xml = new SimpleXMLElement($input);
echo var_dump($xml). "<br />";
gives output:
object(SimpleXMLElement)#3 (2) {
["result"]=>
string(5) "False"
["error"]=>
string(13) "Login Failure"
How to get 'False' value or any in its place into an variable?