亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

Chrome:出錯

This page contains the following errors:

error on line 2 at column 1: Extra content at the end of the document

Below is a rendering of the page up to the first error.

請問老師這是怎么回事?

正在回答

3 回答

解決了?

public static function xmlToEncode($data){

$xml="";

foreach($data as $key=>$value){

$arr="";

if(is_numeric($key){

$arr.="<item>";

}


$xml.="<{$key}>";

//$xml.=$value這樣寫就會報錯誤,改成下面

$xml.=is_array($value)?self::xmlToEncode($value):$value;

$xml.="</{$key}>\n";

}


0 回復 有任何疑惑可以回復我~

我也是這個問題

This page contains the following errors:

error on line 2 at column 1: Extra content at the end of the document

Below is a rendering of the page up to the first error.

怎么解決的

0 回復 有任何疑惑可以回復我~

已解決,發完問題才看到優化后的代碼!謝謝老師!

0 回復 有任何疑惑可以回復我~
#1

扣子and

請問是什么問題呢,我用谷歌瀏覽器也遇到這個問題了
2015-06-03 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
PHP開發APP接口
  • 參與學習       79159    人
  • 解答問題       608    個

APP通信接口技術,不得不掌握的法寶,學完之后你會受益良多

進入課程

Chrome:出錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號