title: Get content from Array inside Object in a try-catch
body: <p>At the moment, I'm using a <code>try-catch</code> to determine if the web services are callable:</p>
  
  <pre><code>try {
    WebServices::create($this-&gt;nameWS);
  }
  catch (Exception $e) {                      
    var_dump($e);     
  }
  </code></pre>
  
  <p>Now, <code>$e</code> contains the error message along with an object containing arrays as shown below.</p>
  
  <p><strong>Note:</strong> the seemingly random <code>"</code> below the third line and again near the end.</p>
  
  <p>I'm sure you can see the string I'm trying to get - it's the only one I've left in the code - <strong>"GetMeService"</strong> (It's inside <code>["class"]=&gt;</code> in <code>[3]</code>) </p>
  
  <pre><code>object(SoapFault)#304 (8) {
    ["message:protected"]=&gt;
    string(182) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:8080/examplewsdl' : failed to load external entity "http://localhost:8080/examplewsdl"
  "
    ["string:private"]=&gt;
    string(0) ""
    ["code:protected"]=&gt;
    int(0)
    ["file:protected"]=&gt;
    string(71) ""
    ["line:protected"]=&gt;
    int(87)
    ["trace:private"]=&gt;
    array(8) {
      [0]=&gt;
      array(6) {
        ["file"]=&gt;
        string(71) ""
        ["line"]=&gt;
        int(87)
        ["function"]=&gt;
        string(10) ""
        ["class"]=&gt;
        string(10) ""
        ["type"]=&gt;
        string(2) "-&gt;"
        ["args"]=&gt;
        array(2) {
          [0]=&gt;
          string(49) ""
          [1]=&gt;
          array(6) {
            ["trace"]=&gt;
            bool(true)
            ["features"]=&gt;
            int(1)
            ["login"]=&gt;
            NULL
            ["password"]=&gt;
            NULL
            ["proxy_host"]=&gt;
            string(13) ""
            ["proxy_port"]=&gt;
            int(80)
          }
        }
      }
      [1]=&gt;
      array(6) {
        ["file"]=&gt;
        string(71) ""
        ["line"]=&gt;
        int(41)
        ["function"]=&gt;
        string(15) ""
        ["class"]=&gt;
        string(18) ""
        ["type"]=&gt;
        string(2) "-&gt;"
        ["args"]=&gt;
        array(2) {
          [0]=&gt;
          &amp;object(WebServices)#292 (1) {
            ["_instanceWSCache"]=&gt;
            array(1) {
              ["eva"]=&gt;
              array(2) {
                ["type"]=&gt;
                string(4) "php5"
                ["params"]=&gt;
                array(4) {
                  ["proxyhost"]=&gt;
                  string(13) ""
                  ["proxyport"]=&gt;
                  int(80)
                  ["wsdl"]=&gt;
                  string(49) ""
                  ["uri"]=&gt;
                  string(24) ""
                }
              }
            }
          }
          [1]=&gt;
          string(7) ""
        }
      }
      [2]=&gt;
      array(6) {
        ["file"]=&gt;
        string(79) ""
        ["line"]=&gt;
        int(22)
        ["function"]=&gt;
        string(6) ""
        ["class"]=&gt;
        string(18) ""
        ["type"]=&gt;
        string(2) "-&gt;"
        ["args"]=&gt;
        array(1) {
          [0]=&gt;
          string(7) ""
        }
      }
      [3]=&gt;
      array(6) {
        ["file"]=&gt;
        string(82) ""
        ["line"]=&gt;
        int(218)
        ["function"]=&gt;
        string(6) ""
        ["class"]=&gt;
        string(14) "GetMeService"
        ["type"]=&gt;
        string(2) "-&gt;"
        ["args"]=&gt;
        array(0) {
        }
      }
    }
    ["faultstring"]=&gt;
    string(182) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:8080/examplewsdl' : failed to load external entity "http://localhost:8080/examplewsdl"
  "
    ["faultcode"]=&gt;
    string(4) "WSDL"
  }  
  </code></pre>
  
  <p>No matter what I try to replace my <code>var_dump</code> with (e.g. <code>var_dump($e=&gt;["trace:private"][3]["class"]);</code>) I cannot get access to that string. Is it possible?</p>