<<< Previous question <<< Question ID#0195.md >>> Next question >>>
What code snippet will you use at line number four (4) in the code snippet given below?
$client = new SoapClient("any.wsdl", array('exceptions' => 0));
$result = $client->SomeFunction();
if (??????) {
trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: {$result->faultstring})", E_USER_ERROR);
}
- A)
is_soap_fault($result)
- B)
use_soap_fault_handler($result)
- C)
is_soap_error_handler($result)
- D)
use_soap_error_handler($result)
Answer
Answer: A