title: Error when parsing the webservice response in PHP
body: <p>I am at the learning stage of PHP. I have tried to invoke a sample webservice from a single PHP script.
  I started with StockQuote service. Below is the script I have written.</p>
  
  <pre><code>&lt;?php
     echo "Stock Quote service check";
     require_once 'nusoap.php';
     $wsdl="http://www.webservicex.net/stockquote.asmx?wsdl";
     $client=new SoapClient($wsdl);
  
     $param=array('symbol'=&gt;'GOOG');  
     $response = $client-&gt;__soapCall('GetQuote', array($params));
     $quotes = simplexml_load_string($response-&gt;GetQuoteResult);
  
     echo $quotes;
     //-&gt;Stock[0];
  
     ?&gt;
  </code></pre>
  
  <p>Below is the warning i got:</p>
  
  <blockquote>
    <p>Deprecated: Assigning the return value of new by reference is
    deprecated in C:\wamp\www\nusoap.php on line 7384</p>
    
    <p>Warning: Creating default object from empty value in
    C:\wamp\www\nusoap.php on line 75</p>
    
    <p>Notice: Undefined variable: params in C:\wamp\www\URLExample.php on
    line 8</p>
    
    <p>Warning: simplexml_load_string(): Entity: line 1: parser error : Start
    tag expected, '&lt;' not found in C:\wamp\www\URLExample.php on line 9</p>
    
    <p>Warning: simplexml_load_string(): exception in
    C:\wamp\www\URLExample.php on line 9</p>
    
    <p>Warning: simplexml_load_string(): ^ in C:\wamp\www\URLExample.php on
    line 9</p>
    
    <p>Notice: Trying to get property of non-object in
    C:\wamp\www\URLExample.php on line 11</p>
  </blockquote>
  
  <p>When I am invoking the function manually I got the below output.
  <img src="https://i.stack.imgur.com/ggyYi.png" alt="enter image description here"></p>
  
  <p>Please help to parse the response XML to get the &lt; Stock> value.
  I found similar type of questions (<a href="https://stackoverflow.com/questions/22060990/php-warning-simplexml-load-string-entity-line-1-parser-error-start-tag-e">Question No: #22060990</a>) but nothing helps to my situation.</p>