• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • SoapFault::__construct()

    (PHP 5, PHP 7)

    SoapFault constructor

    说明

    SoapFault::__construct(string $faultcode,string $faultstring[,string $faultactor[,string $detail[,string $faultname[,string $headerfault]]]])

    此函数是该函数的别名:SoapFault::SoapFault()

    The first Parameter of the constructor, the faultcode, of SoapFault must be a string. Otherwise it will lead to an error.
    <?php
    throw new SoapFault(1, "Error message!"); // wrong
    throw new SoapFault("1", "Error message!"); // right
    ?>