第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

這是什么問題?

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.

正在回答

4 回答

本頁包含以下錯(cuò)誤:

在1列2行錯(cuò)誤:在文檔末尾的額外內(nèi)容

下面是一個(gè)渲染的頁面上的第一個(gè)錯(cuò)誤。


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

打死不信邪 提問者

非常感謝!
2015-06-17 回復(fù) 有任何疑惑可以回復(fù)我~

把你 的PHP代碼發(fā)過來看看

0 回復(fù) 有任何疑惑可以回復(fù)我~

我也遇到了類似的問題

0 回復(fù) 有任何疑惑可以回復(fù)我~

public static function xmlEncode($code,$message = '',$data = array()){

if (!is_numeric($code)) {

return '';

}

$result = array(

'code' => $code,

'message' => $message,

'data' => $data,

);

header("Content-Type:text/xml");

$xml = "<?xml version='1.0' encoding='UTF-8'?>\n";

$xml .="<root>\n";

$xml .=self::xmlToEncode($result);

$xml .="</root>";

echo $xml;

}


public static function xmlToEncode($data){

$xml ="";

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

if (is_numeric($key)) {

$attr = "id='{$key}'";

$key = "item";

}

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

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

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

}

return $xml;

}


}

$data = array(

'id' => '1',

'name' => 'wufei',

'type' => array(4,5,6),

'test' =>array(1,45,12=>array(155,'ttt')),

);

Response::xmlEncode(200,'數(shù)據(jù)傳輸成功',$data);


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
PHP開發(fā)APP接口
  • 參與學(xué)習(xí)       79147    人
  • 解答問題       608    個(gè)

APP通信接口技術(shù),不得不掌握的法寶,學(xué)完之后你會(huì)受益良多

進(jìn)入課程

這是什么問題?

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)