title: Handle web service error in PHP if web service link is not working
body: <p>I am using web services in PHP written by other developer. I want to handle error and stop the execution of next code if in case web service link is not working. I am using it first time.</p>
  
  <pre><code>       $client = new SoapClient(url,array('soap_version'=&gt;SOAP_1_1,
              'exceptions'=&gt;false, 
              'trace'=&gt;1, 'login'=&gt;"user",'password'=&gt;"password",'connection_timeout'=&gt;90,
              'cache_wsdl'=&gt;WSDL_CACHE_DISK ));
  </code></pre>