ฟังก์ชั่น xmlrpc_is_fault()
ความหมายของฟังก์ชั่นและการใช้งาน
การกำหนดค่าอาร์เรย์ เพื่อแสดงว่า XMLRPC มีข้อผิดพลาดหรือไม่ ด้วยฟังก์ชั่น xmlrpc_is_fault()
รูปแบบการเขียน (Syntax)
bool xmlrpc_is_fault ( array $arg )
ตัวอย่างที่ 1
<?php
$response = xmlrpc_decode($file);
if (is_array($response) && xmlrpc_is_fault($response)) {
throw new Exception($response['faultString'], $response['faultCode']);
}
?>