$data =
'<parent>
<child>
<EC>1</EC>
<Descript>Savings Accepted</Descript>
<Logic>RF > LF = PAID</Logic>
<Rules>RF is greater than PAID and LF is equal to PAID</Rules>
</child>
<child>
<EC>2</EC>
<Descript>Savings Declined</Descript>
<Logic>RF >= LF < PAID</Logic>
<Rules>RF greater/equal PAID, LF equal PAID</Rules>
</child>
</parent>';
file_put_contents('rules.xml', $data);
$xml = simplexml_load_file("rules.xml") or die("Error: Cannot create object");
我無法轉換。轉換xml數組在php中的數組問題
$數據='儲蓄接受 RF> LF = PAID RF大於比PAID和LF等於PAID 儲蓄拒絕 RF> = LF RF大於/等於PAID,LF等於PAID 「; file_put_contents('rules.xml',$ data); $ xml = simplexml_load_file(「rules.xml」) 或die(「Error:Can not create object」); –
請在此幫助 –
您可以編輯問題,也可以刪除並創建一個新問題。請說明目前的產出和預期的產出。 – Richard