從我的SOAP服務,如何更改我從這個SOAP服務獲得了數據:更改陣列格式
Array
(
[NE] => 42616324457
[EMAIL] => [email protected]
[TIPE] => POSTPAID
[NAMA] => ALBERTHO
[TELP] => 0812345678
[DN] => 127272748174
[STATUS_LOGIN] => 1
[DESC_LOGIN] => Valid
)
作爲這樣一種形式:
Array
(
[0] => stdClass Object
(
[id] => 1
[NE] => 42616324457
[EMAIL] => [email protected]
[TIPE] => POSTPAID
[NAMA] => ALBERTHO
[TELP] => 0812345678
[DN] => 127272748174
[STATUS_LOGIN] => 1
[DESC_LOGIN] => Valid
[PASSWORD] => malaquena
)
)
我SOAP服務代碼:
<?php
require_once('lib/nusoap.php');
$Email = $_GET['email'];
$Password = $_GET['pass'];
$client = new nusoap_client('http://vcare.telkomvision.net.id/services/VcareServices.php');
$BacaSOAP = $client->call('validateLogin', array('EMAIL' => $Email, 'PASSWORD' => md5($Password)));
?>
請幫我改變陣列的格式
http://stackoverflow.com/questions/1869091/convert-array-to- object-php這個怎麼樣? –