data[′tk′]=jsondecode(jsonencode(xml),TRUE); 先把simplexml 物件轉換成json,再將json 轉換成陣列。 程式碼: <?php $string = <<<XML <?xml ...
確定! 回上一頁