Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 748 Bytes

0195.md

File metadata and controls

39 lines (31 loc) · 748 Bytes

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